Commit Graph

240 Commits

Author SHA1 Message Date
James Le Cuirot 8574988c3a Completely unbundle libedit
FS-353

Signed-off-by: Travis Cross <tc@traviscross.com>
2014-03-24 12:39:59 +00:00
Brian West c4c0f38aab FS-6294 FS-6308 NetBSD support should work test and report back please. 2014-03-19 14:34:07 -05:00
William King 138224d816 FS-6303 --resolve 2014-03-04 12:30:14 -08:00
Marc Olivier Chouinard 289d0de371 some circonstance, esl connection closing would hang. This should fix it 2014-02-23 20:52:14 -05:00
William King 5fb660933d ESL-82 --resolve
Previously any esl_connect_timeout() failures would not return to the calling application the reason for the failure.
This commit now allows for calling applications to know why the connection attempt fails, but it is now the calling
applications responsiblity to call esl_disconnect() on the esl handle after the failure. Failing to call disconnect after
a failed connection attempt would result in memory being leaked.
2014-02-21 14:14:05 -08:00
Seven Du 11dee76381 add user_data in esl_listen so the main function can pass a private user_data to callback 2014-02-16 08:14:44 +08:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Moises Silva f5f4df3483 Fix ESL infinite loop on handle_recv() when errno is already set
system calls do not clear errno, just set it in case of failure, so we
gotta make sure the recv() syscall really failed by checking the return value
2014-02-01 01:40:29 +05:00
Peter Olsson 5a820fdc78 Disabled some compiler warnings on Windows build (for Visual Studio 2012), also disabled code analysis one some projects. This should make the Windows build more clean in the future. 2014-01-22 22:47:11 +01:00
Steve Underwood ac2bf8a405 Fixed a file permission in the ESL library 2013-12-08 01:39:00 +08:00
Jeff Lenk bb53175526 FS-6010 --resolve 2013-11-29 22:16:49 -06:00
Anthony Minessale ca8f121977 fix regression from recent refactor that causes infinite loop on unexpected disconnect 2013-11-22 04:53:34 +05:00
Anthony Minessale 634d936a02 kill socket in esl_disconnect to prevent blocking 2013-11-20 23:50:15 +05:00
Jeff Lenk 4ee3b70496 fix windows esl compile 2013-11-13 17:59:52 -06:00
Anthony Minessale c429de4139 fix build err 2013-11-14 01:38:00 +05:00
Anthony Minessale c469e7ada2 cleanup ESL a little 2013-11-14 00:43:25 +05:00
Anthony Minessale 931d3fb86a remove condition for mem leak 2013-11-12 12:33:32 -06:00
Anthony Minessale a036125bc4 update cc header 2013-09-18 05:20:56 +05:00
Anthony Minessale 73646cbaa8 FS-5737 reapply 2013-08-29 22:21:10 +05:00
Anthony Minessale 2e2e4caa45 FS-5737 revert 2013-08-29 22:20:00 +05:00
Anthony Minessale 0d26dbb318 FS-5737 --resolve 2013-08-29 21:03:01 +05:00
Anthony Minessale 76ba6a2342 FS-5737 --resolve 2013-08-28 23:26:07 +05:00
Raymond Chandler 863e6cfa3f FS-2731 significantly reworked version of Emmanuel's patch to allow subscribing and notifying for the as-feature-event events. we still need a module to handle the FS events for this automatically... coming soon to a repository near you 2013-08-23 15:54:49 -04:00
Anthony Minessale c14d9c436e FS-5575 --resolve 2013-07-12 14:43:18 -05:00
Anthony Minessale 30d5ecf9f7 FS-5445 --resolve this was actually just missing one word from the code as seen in the similar code in the core, the same mistake was made there where the compiler is not smart enough to see the mutually exclusive logical paths this code is specific to spontaneously creating an array in a single set like set foo[12]=val which would be totally broken if that line were commented 2013-07-10 10:26:08 -05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Anthony Minessale 4240526ce3 add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device 2013-06-05 11:20:11 -05:00
Travis Cross d7b139f3b4 Avoid dereferencing potential null value 2013-05-28 03:55:48 +00:00
Travis Cross 3217442d0e Remove assignment without effect 2013-05-28 03:46:53 +00:00
Travis Cross 2dea51ad58 Handle potential malloc failure better 2013-05-28 03:40:58 +00:00
Travis Cross ef13a63447 Fix unlikely memory leak in ESL 2013-05-28 03:01:49 +00:00
Travis Cross 8c37db140e Handle a failure of strerror_r
This fixes the build on gcc-4.7.3.  The build was breaking with:

  error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]
2013-05-25 19:05:34 +00:00
Travis Cross 6d5018007b Add missing text editor local variable blocks 2013-05-25 19:05:34 +00:00
Stefan Knoblich cb9090dc93 esl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR
ivrd doesn't use sigaction + SA_RESTART for SIGCHILD. An exiting
child process will interrupt accept() in the parent to handle
the signal, which makes accept() return -1 (errno = EINTR) after
the sighandler function returns.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-05-23 02:07:55 +02:00
William King b4209ca93b Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used. 2013-05-18 20:42:03 -07:00
William King e2ea6e58c8 Minor code cleanup. calling va_start without calling va_end doesn't leak does it? Either way, it's fixed now. 2013-05-18 20:15:55 -07:00
Jeff Lenk dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Jeff Lenk c7e8dce247 FS-4828 --resolve 2012-11-17 21:38:07 -06:00
Ken Rice 3c249b012e FS-4003 --resolve add IPv6 support to ESL client library, thanks to Steven Ayre 2012-11-01 22:39:16 +00:00
Anthony Minessale 50cd5c28f5 add originated_legs and originate_causes to A leg when present in an originate to detail the B leg data 2012-10-18 13:23:05 -04:00
Anthony Minessale 5b0115676c add void to declarations 2012-09-27 09:19:51 -05:00
Robert Jongbloed cf0f483aab Assuming, just because it is MSVC, that the standard integers are not defined, is not correct. Need to test for define _STDINT as well as later versions of MSVC (>= VS2010) do have stdint.h 2012-09-27 10:16:14 +10:00
Anthony Minessale 03c981bf72 add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
Michael Jerris 4ff9b2f102 revert fb2ffbafe2 2012-09-24 15:38:06 -04:00
Travis Cross fb2ffbafe2 Add configure flags to moderate the ClueCon nags
The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.

However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.

If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
2012-09-23 07:49:26 +00:00
Jeff Lenk 6b8e177c58 fix strange code analysis error 2012-09-14 14:55:52 -05:00
Jeff Lenk 2e9b4c23de FS-4618 --resolve 2012-09-14 07:38:03 -05:00
Anthony Minessale 5a956890af update json lib in core and ESL and re-apply old patches 2012-09-13 12:54:31 -05:00
Jeff Lenk d8fc88ea75 FS-4605 --resolve 2012-09-10 19:34:04 -05:00
Anthony Minessale 7d38669801 fix wrong len in ESL sendMSG method 2012-08-28 12:04:50 -05:00