X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Ffatal-signal.h;h=b458d3d61c9a807e2ef25d1d6f105f9707654958;hb=8ea3791cc48cdfa477ae42ad0eb5e4fb2bf0ce5d;hp=0bce1e272c6402573ef946ab5eeb09e9532d2a64;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=sliver-openvswitch.git diff --git a/lib/fatal-signal.h b/lib/fatal-signal.h index 0bce1e272..b458d3d61 100644 --- a/lib/fatal-signal.h +++ b/lib/fatal-signal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,10 +20,13 @@ #include /* Basic interface. */ -void fatal_signal_add_hook(void (*)(void *aux), void *aux, bool run_at_exit); -void fatal_signal_block(void); -void fatal_signal_unblock(void); +void fatal_signal_init(void); +void fatal_signal_add_hook(void (*hook_cb)(void *aux), + void (*cancel_cb)(void *aux), void *aux, + bool run_at_exit); void fatal_signal_fork(void); +void fatal_signal_run(void); +void fatal_signal_wait(void); /* Convenience functions for unlinking files upon termination. * @@ -31,6 +34,7 @@ void fatal_signal_fork(void); * exit(). */ void fatal_signal_add_file_to_unlink(const char *); void fatal_signal_remove_file_to_unlink(const char *); +int fatal_signal_unlink_file_now(const char *); /* Interface for other code that catches one of our signals and needs to pass * it through. */