On FreeBSD sig_atomic_t is long, which causes the comparison in
fatal_signal_run to be true when no signal has been reported.
Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Daniel Roman droman@nicira.com
David Erickson derickso@stanford.edu
Dominic Curran dominic.curran@citrix.com
+Ed Maste emaste at freebsd.org
Edward Tomasz NapieraĆa trasz@freebsd.org
Ethan Jackson ethan@nicira.com
Gaetano Catalli gaetano.catalli@gmail.com
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void
fatal_signal_run(void)
{
- int sig_nr;
+ sig_atomic_t sig_nr;
fatal_signal_init();