Menu

#21 No-portable use of sighandler_t

open
nobody
ec2tools (1)
5
2008-09-26
2008-09-26
No

Using sighandler_t is not portable. It breaks on Mac OS X and probably other BSD systems too.

Affected files:
src/ec2tools/ec2device.cpp
src/ec2tools/ec2test-any.cpp
src/newcdb/main.cpp

On Mac OS X if find I can simply replace sighandler_t with sig_t

However, a better solution would be to use the more portable sigaction() rather than signal() and avoid the use of sighandler_t entirely.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB