summaryrefslogtreecommitdiff
path: root/lib/signals.c
Commit message (Collapse)AuthorAgeFilesLines
* signals: Add support for sigdescr_np.Mike Pattrick2022-04-041-0/+5
| | | | | | | | | In glibc 2.32 sys_siglist is no longer exported. The MT-safe function sigdescr_np() is now available for the same purpose. Signed-off-by: Mike Pattrick <mkp@redhat.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
* lib: Move lib/poll-loop.h to include/openvswitchXiao Liang2017-11-031-1/+1
| | | | | | | | Poll-loop is the core to implement main loop. It should be available in libopenvswitch. Signed-off-by: Xiao Liang <shaw.leon@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* Move lib/type-props.h to include/openvswitch directoryBen Warren2016-04-141-1/+1
| | | | | Signed-off-by: Ben Warren <ben@skyportsystems.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* lib: Move vlog.h to <openvswitch/vlog.h>Thomas Graf2014-12-151-1/+1
| | | | | | | | A new function vlog_insert_module() is introduced to avoid using list_insert() from the vlog.h header. Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
* signals: Remove unused functions.Gurucharan Shetty2014-02-211-69/+0
| | | | | Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* signals: Don't assume that sys_siglist is an array.YAMAMOTO Takashi2013-10-031-1/+1
| | | | | | | | Found by commit 878f1972909b3 (util: use gcc builtins to better check array sizes). Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Replace all uses of strerror() by ovs_strerror(), for thread safety.Ben Pfaff2013-06-281-2/+2
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* signals: Make thread-safe.Ben Pfaff2013-06-051-52/+14
| | | | | Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
* signals: Make signal_name() thread-safe.Ben Pfaff2013-06-051-13/+14
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* signals: Use sys_siglist[] instead of strsignal() for thread-safety.Ben Pfaff2013-06-051-2/+6
| | | | | | | strsignal() isn't thread-safe but sys_siglist[] is. Also, according to the glibc manual, BSD has sys_siglist[] but not strsignal(). Signed-off-by: Ben Pfaff <blp@nicira.com>
* Use pthread_sigmask() in place of sigprocmask(), for thread safety.Ben Pfaff2013-05-021-4/+5
| | | | | | | | | | | POSIX says that multithreaded programs must not use sigprocmask() but must use pthread_sigmask() instead. This commit makes that replacement. The actual use of signals in Open vSwitch is still not thread safe following this commit, but this change is a necessary prerequisite for fixing the other problems. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Replace most uses of assert by ovs_assert.Ben Pfaff2013-01-161-2/+1
| | | | | | | | This is a straight search-and-replace, except that I also removed #include <assert.h> from each file where there were no assert calls left. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
* lib: Add xpipe_nonblocking helperEd Maste2012-09-281-3/+1
| | | | | Signed-off-by: Ed Maste <emaste@adaranet.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* socket-util: New function xset_nonblocking().Ben Pfaff2012-07-181-3/+3
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* signals: New function signal_unregister().Ben Pfaff2011-06-071-4/+17
| | | | Fixes a very minor memory leak in ovs-vswitchd reported by valgrind.
* Log anything that could prevent a daemon from starting.Ben Pfaff2011-04-041-6/+22
| | | | | If a daemon doesn't start, we need to know why. Being able to consistently consult the log to find out is helpful.
* signals: New function signal_name().Ben Pfaff2011-04-041-1/+23
| | | | This will acquire a new user in an upcoming commit.
* Clean-up compiler warnings about ignoring return valuesJustin Pettit2009-12-151-2/+2
| | | | | | | Some systems complain when certain functions' return values are not checked. This commit fixes those warnings. Creating ignore() function suggested by Ben Pfaff.
* Update primary code license to Apache 2.0.Ben Pfaff2009-06-151-10/+10
|
* Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff2009-07-081-0/+128