]> granicus.if.org Git - zfs/commit
Use sigaction(2) instead of sigignore(3) for portability
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 9 Apr 2019 16:58:28 +0000 (01:58 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 May 2019 03:46:15 +0000 (20:46 -0700)
commit2a15c00f89468dde08ef48f2d6a3df223c60e723
treecf9ed20547e7b630bdedc5ef6139aa2ae0e0fbfa
parent5b1443c47e4ae5c53f343f3d0fb81d8d963c3d95
Use sigaction(2) instead of sigignore(3) for portability

sigignore(3) isn't portable.
This code fails to compile on platforms without sigignore(3).
Use sigaction(2).

--
zfs_main.c: In function 'zfs_do_diff':
zfs_main.c:7178:9: error: implicit declaration of function 'sigignore' [-Werror=implicit-function-declaration]
  (void) sigignore(SIGPIPE);
         ^~~~~~~~~

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8593
cmd/zfs/zfs_main.c