2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
|
2008-07-04 14:36:28 +00:00
|
|
|
.\" and Copyright (c) 2002, 2006 by Michael Kerrisk <mtk.manpages@gmail.com>
|
|
|
|
.\" and Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
|
|
|
|
.\" <mtk.manpages@gmail.com>
|
2004-11-03 13:51:07 +00:00
|
|
|
.\"
|
intro.1, _exit.2, access.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bind.2, chdir.2, chmod.2, chown.2, chroot.2, clock_getres.2, clock_nanosleep.2, close.2, connect.2, delete_module.2, dup.2, execve.2, exit_group.2, faccessat.2, fchmodat.2, fchownat.2, fcntl.2, fork.2, fstatat.2, fsync.2, futimesat.2, get_robust_list.2, getdents.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getpagesize.2, getpid.2, getresuid.2, getrlimit.2, getrusage.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, idle.2, init_module.2, intro.2, iopl.2, kcmp.2, kexec_load.2, kill.2, link.2, linkat.2, llseek.2, lookup_dcookie.2, madvise.2, mincore.2, mkdirat.2, mknodat.2, mmap.2, mmap2.2, mount.2, mprotect.2, mq_getsetattr.2, msgctl.2, msgget.2, msgop.2, msync.2, nice.2, open.2, openat.2, pause.2, perfmonctl.2, personality.2, pipe.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, quotactl.2, read.2, readahead.2, readdir.2, readlinkat.2, readv.2, reboot.2, recvmmsg.2, remap_file_pages.2, rename.2, renameat.2, rmdir.2, rt_sigqueueinfo.2, select.2, select_tut.2, semctl.2, semget.2, semop.2, sendmmsg.2, set_tid_address.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setresuid.2, setuid.2, setup.2, sgetmask.2, shmctl.2, shmget.2, shmop.2, sigaction.2, sigaltstack.2, signal.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, splice.2, stat.2, statfs.2, stime.2, subpage_prot.2, swapon.2, symlink.2, symlinkat.2, sync.2, sync_file_range.2, syscalls.2, sysctl.2, sysfs.2, syslog.2, tee.2, time.2, timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, times.2, tkill.2, umask.2, umount.2, uname.2, unlink.2, unlinkat.2, uselib.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, vmsplice.2, wait.2, wait4.2, write.2, CPU_SET.3, INFINITY.3, abort.3, abs.3, acos.3, acosh.3, adjtime.3, aio_init.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, basename.3, bcmp.3, bcopy.3, bindresvport.3, bsd_signal.3, bsearch.3, bstring.3, byteorder.3, bzero.3, catgets.3, catopen.3, cbrt.3, ceil.3, clearenv.3, clock.3, clock_getcpuclockid.3, closedir.3, confstr.3, copysign.3, cos.3, cosh.3, ctermid.3, ctime.3, difftime.3, dirfd.3, div.3, dl_iterate_phdr.3, dprintf.3, drand48.3, drand48_r.3, dysize.3, ecvt.3, ecvt_r.3, end.3, endian.3, erf.3, erfc.3, ether_aton.3, euidaccess.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fcloseall.3, fexecve.3, ffs.3, fgetgrent.3, fgetpwent.3, finite.3, flockfile.3, floor.3, fmod.3, fnmatch.3, fopencookie.3, fpathconf.3, fpurge.3, frexp.3, fseeko.3, ftok.3, futimes.3, gcvt.3, get_nprocs_conf.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getenv.3, getfsent.3, getgrent.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getifaddrs.3, getipnodebyname.3, getline.3, getlogin.3, getmntent.3, getnetent.3, getnetent_r.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwnam.3, getrpcent_r.3, gets.3, getservent.3, getservent_r.3, getumask.3, getusershell.3, getutmp.3, getw.3, glob.3, gnu_get_libc_version.3, gsignal.3, hypot.3, if_nameindex.3, if_nametoindex.3, ilogb.3, index.3, inet.3, inet_ntop.3, inet_pton.3, infnan.3, initgroups.3, insque.3, intro.3, isalpha.3, isatty.3, j0.3, ldexp.3, localeconv.3, log.3, log10.3, log1p.3, log2.3, logb.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, makedev.3, mallinfo.3, malloc.3, malloc_get_state.3, malloc_info.3, malloc_stats.3, malloc_trim.3, malloc_usable_size.3, mallopt.3, matherr.3, mcheck.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, memset.3, mkdtemp.3, mkfifo.3, mkfifoat.3, mkstemp.3, mktemp.3, modf.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, on_exit.3, opendir.3, posix_fallocate.3, posix_memalign.3, posix_openpt.3, pow.3, pow10.3, profil.3, psignal.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_detach.3, pthread_equal.3, pthread_exit.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_join.3, pthread_kill.3, pthread_kill_other_threads_np.3, pthread_self.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_sigmask.3, pthread_sigqueue.3, pthread_testcancel.3, pthread_tryjoin_np.3, pthread_yield.3, putenv.3, putpwent.3, puts.3, qecvt.3, qsort.3, raise.3, rand.3, random.3, random_r.3, re_comp.3, readdir.3, realpath.3, regex.3, remainder.3, remove.3, resolver.3, rewinddir.3, rint.3, round.3, scalb.3, scalbln.3, scandir.3, sched_getcpu.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setenv.3, setlocale.3, setlogmask.3, shm_open.3, siginterrupt.3, sigpause.3, sigqueue.3, sigset.3, sigsetops.3, sigvec.3, sigwait.3, sin.3, sinh.3, sleep.3, sockatmark.3, sqrt.3, statvfs.3, stdio_ext.3, stpcpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfry.3, strftime.3, string.3, strlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, trunc.3, tsearch.3, ttyslot.3, tzset.3, ulimit.3, undocumented.3, unlocked_stdio.3, usleep.3, y0.3, cpuid.4, full.4, initrd.4, mouse.4, msr.4, sd.4, st.4, acct.5, core.5, services.5, slabinfo.5, aio.7, capabilities.7, credentials.7, feature_test_macros.7, hier.7, inotify.7, libc.7, locale.7, man-pages.7, man.7, math_error.7, mq_overview.7, numa.7, path_resolution.7, pipe.7, pthreads.7, pty.7, rtld-audit.7, sem_overview.7, shm_overview.7, sigevent.7, signal.7, suffixes.7, svipc.7, termio.7, time.7, udplite.7, units.7, uri.7, sln.8: s/LICENSE_START(verbatim)/LICENSE_START(VERBATIM)/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10 09:29:01 +00:00
|
|
|
.\" %%%LICENSE_START(VERBATIM)
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of this
|
|
|
|
.\" manual under the conditions for verbatim copying, provided that the
|
|
|
|
.\" entire resulting derived work is distributed under the terms of a
|
|
|
|
.\" permission notice identical to this one.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume no
|
|
|
|
.\" responsibility for errors or omissions, or for damages resulting from
|
|
|
|
.\" the use of the information contained herein. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
intro.1, _exit.2, access.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bind.2, chdir.2, chmod.2, chown.2, chroot.2, clock_getres.2, clock_nanosleep.2, close.2, connect.2, delete_module.2, dup.2, execve.2, exit_group.2, faccessat.2, fchmodat.2, fchownat.2, fcntl.2, fork.2, fstatat.2, fsync.2, futimesat.2, get_robust_list.2, getdents.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getpagesize.2, getpid.2, getresuid.2, getrlimit.2, getrusage.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, idle.2, init_module.2, intro.2, iopl.2, kcmp.2, kexec_load.2, kill.2, link.2, linkat.2, llseek.2, lookup_dcookie.2, madvise.2, mincore.2, mkdirat.2, mknodat.2, mmap.2, mmap2.2, mount.2, mprotect.2, mq_getsetattr.2, msgctl.2, msgget.2, msgop.2, msync.2, nice.2, open.2, openat.2, pause.2, perfmonctl.2, personality.2, pipe.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, quotactl.2, read.2, readahead.2, readdir.2, readlinkat.2, readv.2, reboot.2, recvmmsg.2, remap_file_pages.2, rename.2, renameat.2, rmdir.2, rt_sigqueueinfo.2, select.2, select_tut.2, semctl.2, semget.2, semop.2, sendmmsg.2, set_tid_address.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setresuid.2, setuid.2, setup.2, sgetmask.2, shmctl.2, shmget.2, shmop.2, sigaction.2, sigaltstack.2, signal.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, splice.2, stat.2, statfs.2, stime.2, subpage_prot.2, swapon.2, symlink.2, symlinkat.2, sync.2, sync_file_range.2, syscalls.2, sysctl.2, sysfs.2, syslog.2, tee.2, time.2, timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, times.2, tkill.2, umask.2, umount.2, uname.2, unlink.2, unlinkat.2, uselib.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, vmsplice.2, wait.2, wait4.2, write.2, CPU_SET.3, INFINITY.3, abort.3, abs.3, acos.3, acosh.3, adjtime.3, aio_init.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, basename.3, bcmp.3, bcopy.3, bindresvport.3, bsd_signal.3, bsearch.3, bstring.3, byteorder.3, bzero.3, catgets.3, catopen.3, cbrt.3, ceil.3, clearenv.3, clock.3, clock_getcpuclockid.3, closedir.3, confstr.3, copysign.3, cos.3, cosh.3, ctermid.3, ctime.3, difftime.3, dirfd.3, div.3, dl_iterate_phdr.3, dprintf.3, drand48.3, drand48_r.3, dysize.3, ecvt.3, ecvt_r.3, end.3, endian.3, erf.3, erfc.3, ether_aton.3, euidaccess.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fcloseall.3, fexecve.3, ffs.3, fgetgrent.3, fgetpwent.3, finite.3, flockfile.3, floor.3, fmod.3, fnmatch.3, fopencookie.3, fpathconf.3, fpurge.3, frexp.3, fseeko.3, ftok.3, futimes.3, gcvt.3, get_nprocs_conf.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getenv.3, getfsent.3, getgrent.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getifaddrs.3, getipnodebyname.3, getline.3, getlogin.3, getmntent.3, getnetent.3, getnetent_r.3, getopt.3, getprotoent.3, getprotoent_r.3, getpw.3, getpwent.3, getpwnam.3, getrpcent_r.3, gets.3, getservent.3, getservent_r.3, getumask.3, getusershell.3, getutmp.3, getw.3, glob.3, gnu_get_libc_version.3, gsignal.3, hypot.3, if_nameindex.3, if_nametoindex.3, ilogb.3, index.3, inet.3, inet_ntop.3, inet_pton.3, infnan.3, initgroups.3, insque.3, intro.3, isalpha.3, isatty.3, j0.3, ldexp.3, localeconv.3, log.3, log10.3, log1p.3, log2.3, logb.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, makedev.3, mallinfo.3, malloc.3, malloc_get_state.3, malloc_info.3, malloc_stats.3, malloc_trim.3, malloc_usable_size.3, mallopt.3, matherr.3, mcheck.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, memset.3, mkdtemp.3, mkfifo.3, mkfifoat.3, mkstemp.3, mktemp.3, modf.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, on_exit.3, opendir.3, posix_fallocate.3, posix_memalign.3, posix_openpt.3, pow.3, pow10.3, profil.3, psignal.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_detach.3, pthread_equal.3, pthread_exit.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_join.3, pthread_kill.3, pthread_kill_other_threads_np.3, pthread_self.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_sigmask.3, pthread_sigqueue.3, pthread_testcancel.3, pthread_tryjoin_np.3, pthread_yield.3, putenv.3, putpwent.3, puts.3, qecvt.3, qsort.3, raise.3, rand.3, random.3, random_r.3, re_comp.3, readdir.3, realpath.3, regex.3, remainder.3, remove.3, resolver.3, rewinddir.3, rint.3, round.3, scalb.3, scalbln.3, scandir.3, sched_getcpu.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setenv.3, setlocale.3, setlogmask.3, shm_open.3, siginterrupt.3, sigpause.3, sigqueue.3, sigset.3, sigsetops.3, sigvec.3, sigwait.3, sin.3, sinh.3, sleep.3, sockatmark.3, sqrt.3, statvfs.3, stdio_ext.3, stpcpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfry.3, strftime.3, string.3, strlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, trunc.3, tsearch.3, ttyslot.3, tzset.3, ulimit.3, undocumented.3, unlocked_stdio.3, usleep.3, y0.3, cpuid.4, full.4, initrd.4, mouse.4, msr.4, sd.4, st.4, acct.5, core.5, services.5, slabinfo.5, aio.7, capabilities.7, credentials.7, feature_test_macros.7, hier.7, inotify.7, libc.7, locale.7, man-pages.7, man.7, math_error.7, mq_overview.7, numa.7, path_resolution.7, pipe.7, pthreads.7, pty.7, rtld-audit.7, sem_overview.7, shm_overview.7, sigevent.7, signal.7, suffixes.7, svipc.7, termio.7, time.7, udplite.7, units.7, uri.7, sln.8: Global fix: Add LICENSE_START(verbatim)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10 09:28:40 +00:00
|
|
|
.\" %%%LICENSE_END
|
2005-06-07 06:51:12 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Modified Sat Jul 24 17:34:08 1993 by Rik Faith (faith@cs.unc.edu)
|
|
|
|
.\" Modified Sun Jan 7 01:41:27 1996 by Andries Brouwer (aeb@cwi.nl)
|
|
|
|
.\" Modified Sun Apr 14 12:02:29 1996 by Andries Brouwer (aeb@cwi.nl)
|
|
|
|
.\" Modified Sat Nov 13 16:28:23 1999 by Andries Brouwer (aeb@cwi.nl)
|
2007-09-20 06:52:22 +00:00
|
|
|
.\" Modified 10 Apr 2002, by Michael Kerrisk <mtk.manpages@gmail.com>
|
|
|
|
.\" Modified 7 Jun 2002, by Michael Kerrisk <mtk.manpages@gmail.com>
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Added information on real-time signals
|
2007-09-20 06:52:22 +00:00
|
|
|
.\" Modified 13 Jun 2002, by Michael Kerrisk <mtk.manpages@gmail.com>
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Noted that SIGSTKFLT is in fact unused
|
2004-12-03 15:11:50 +00:00
|
|
|
.\" 2004-12-03, Modified mtk, added notes on RLIMIT_SIGPENDING
|
2006-04-24 00:43:09 +00:00
|
|
|
.\" 2006-04-24, mtk, Added text on changing signal dispositions,
|
|
|
|
.\" signal mask, and pending signals.
|
2008-07-04 14:36:28 +00:00
|
|
|
.\" 2008-07-04, mtk:
|
|
|
|
.\" Added section on system call restarting (SA_RESTART)
|
|
|
|
.\" Added section on stop/cont signals interrupting syscalls.
|
2008-10-06 08:12:00 +00:00
|
|
|
.\" 2008-10-05, mtk: various additions
|
2004-11-03 13:51:07 +00:00
|
|
|
.\"
|
intro.1, clock_getres.2, execve.2, fcntl.2, iopl.2, lseek.2, mknod.2, mmap.2, mount.2, mq_getsetattr.2, pidfd_open.2, prctl.2, setns.2, sgetmask.2, sigaction.2, stat.2, statx.2, sync.2, syscalls.2, syslog.2, timerfd_create.2, umask.2, a64l.3, aio_init.3, atoi.3, dladdr.3, fread.3, getpt.3, isfdtype.3, malloc_stats.3, malloc_trim.3, mkfifo.3, mq_close.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, posix_memalign.3, posix_openpt.3, pthread_atfork.3, pthread_rwlockattr_setkind_np.3, regex.3, scanf.3, sem_close.3, sem_destroy.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sigset.3, sigvec.3, strftime.3, termios.3, console_codes.4, dsp56k.4, fd.4, lp.4, mouse.4, pts.4, sk98lin.4, dir_colors.5, proc.5, resolv.conf.5, termcap.5, utmp.5, aio.7, armscii-8.7, arp.7, capabilities.7, cgroups.7, charsets.7, cp1251.7, cp1252.7, environ.7, glob.7, inode.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, keyrings.7, koi8-r.7, koi8-u.7, mailaddr.7, man-pages.7, netdevice.7, operator.7, persistent-keyring.7, process-keyring.7, pthreads.7, pty.7, raw.7, regex.7, session-keyring.7, shm_overview.7, signal.7, socket.7, suffixes.7, thread-keyring.7, unicode.7, units.7, uri.7, user-keyring.7, user-session-keyring.7, iconvconfig.8, ld.so.8, zic.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-08-13 08:01:14 +00:00
|
|
|
.TH SIGNAL 7 2020-08-13 "Linux" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
2008-10-06 08:12:00 +00:00
|
|
|
signal \- overview of signals
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
Linux supports both POSIX reliable signals (hereinafter
|
|
|
|
"standard signals") and POSIX real-time signals.
|
intro.1, time.1, _syscall.2, accept.2, capget.2, clone.2, execve.2, fcntl.2, intro.2, ioctl_list.2, ioprio_set.2, kill.2, mlock.2, nanosleep.2, perf_event_open.2, select.2, stat.2, times.2, ustat.2, vfork.2, wait.2, cfree.3, dbopen.3, dlopen.3, fenv.3, fmtmsg.3, gamma.3, getaddrinfo.3, gethostbyname.3, getnameinfo.3, getspnam.3, login.3, printf.3, regex.3, stdio.3, sysconf.3, termios.3, ttyslot.3, undocumented.3, wordexp.3, console_codes.4, initrd.4, mouse.4, random.4, st.4, tty_ioctl.4, wavelan.4, charmap.5, dir_colors.5, hosts.5, termcap.5, armscii-8.7, boot.7, bootparam.7, capabilities.7, charsets.7, ddp.7, futex.7, glob.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man.7, numa.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, rtnetlink.7, signal.7, time.7, udp.7, udplite.7, unicode.7, uri.7, utf-8.7: G;lobal fix: remove unneeded double quotes in .SS headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:02:18 +00:00
|
|
|
.SS Signal dispositions
|
2007-04-12 22:42:49 +00:00
|
|
|
Each signal has a current
|
2006-04-24 00:43:09 +00:00
|
|
|
.IR disposition ,
|
2007-04-12 22:42:49 +00:00
|
|
|
which determines how the process behaves when it is delivered
|
2006-04-24 00:43:09 +00:00
|
|
|
the signal.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2018-11-17 09:10:30 +00:00
|
|
|
The entries in the "Action" column of the table below specify
|
2006-04-24 00:43:09 +00:00
|
|
|
the default disposition for each signal, as follows:
|
2004-11-03 13:51:07 +00:00
|
|
|
.IP Term
|
|
|
|
Default action is to terminate the process.
|
|
|
|
.IP Ign
|
|
|
|
Default action is to ignore the signal.
|
|
|
|
.IP Core
|
2006-04-24 00:43:09 +00:00
|
|
|
Default action is to terminate the process and dump core (see
|
|
|
|
.BR core (5)).
|
2004-11-03 13:51:07 +00:00
|
|
|
.IP Stop
|
|
|
|
Default action is to stop the process.
|
2006-04-24 00:43:09 +00:00
|
|
|
.IP Cont
|
|
|
|
Default action is to continue the process if it is currently stopped.
|
2004-11-03 13:51:07 +00:00
|
|
|
.PP
|
2006-04-24 00:43:09 +00:00
|
|
|
A process can change the disposition of a signal using
|
|
|
|
.BR sigaction (2)
|
2010-06-12 12:53:29 +00:00
|
|
|
or
|
2006-04-24 00:43:09 +00:00
|
|
|
.BR signal (2).
|
2010-06-12 12:53:29 +00:00
|
|
|
(The latter is less portable when establishing a signal handler;
|
|
|
|
see
|
|
|
|
.BR signal (2)
|
|
|
|
for details.)
|
2007-04-12 22:42:49 +00:00
|
|
|
Using these system calls, a process can elect one of the
|
2007-10-16 19:18:17 +00:00
|
|
|
following behaviors to occur on delivery of the signal:
|
2007-04-12 22:42:49 +00:00
|
|
|
perform the default action; ignore the signal;
|
2006-04-24 00:43:09 +00:00
|
|
|
or catch the signal with a
|
2007-04-12 22:42:49 +00:00
|
|
|
.IR "signal handler" ,
|
|
|
|
a programmer-defined function that is automatically invoked
|
2006-04-24 00:43:09 +00:00
|
|
|
when the signal is delivered.
|
2019-07-13 18:17:21 +00:00
|
|
|
.PP
|
|
|
|
By default, a signal handler is invoked on the
|
2008-10-05 05:46:09 +00:00
|
|
|
normal process stack.
|
|
|
|
It is possible to arrange that the signal handler
|
|
|
|
uses an alternate stack; see
|
|
|
|
.BR sigaltstack (2)
|
2019-07-13 18:17:21 +00:00
|
|
|
for a discussion of how to do this and when it might be useful.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2006-04-24 00:43:09 +00:00
|
|
|
The signal disposition is a per-process attribute:
|
2007-04-12 22:42:49 +00:00
|
|
|
in a multithreaded application, the disposition of a
|
2006-04-24 00:43:09 +00:00
|
|
|
particular signal is the same for all threads.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2008-10-04 06:33:53 +00:00
|
|
|
A child created via
|
|
|
|
.BR fork (2)
|
|
|
|
inherits a copy of its parent's signal dispositions.
|
|
|
|
During an
|
|
|
|
.BR execve (2),
|
|
|
|
the dispositions of handled signals are reset to the default;
|
|
|
|
the dispositions of ignored signals are left unchanged.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS Sending a signal
|
2008-10-05 05:23:58 +00:00
|
|
|
The following system calls and library functions allow
|
|
|
|
the caller to send a signal:
|
2008-10-05 05:29:00 +00:00
|
|
|
.TP 16
|
2008-10-05 05:23:58 +00:00
|
|
|
.BR raise (3)
|
|
|
|
Sends a signal to the calling thread.
|
|
|
|
.TP
|
|
|
|
.BR kill (2)
|
|
|
|
Sends a signal to a specified process,
|
|
|
|
to all members of a specified process group,
|
|
|
|
or to all processes on the system.
|
|
|
|
.TP
|
2016-11-04 17:00:02 +00:00
|
|
|
.BR killpg (3)
|
2008-10-05 05:23:58 +00:00
|
|
|
Sends a signal to all of the members of a specified process group.
|
|
|
|
.TP
|
|
|
|
.BR pthread_kill (3)
|
|
|
|
Sends a signal to a specified POSIX thread in the same process as
|
|
|
|
the caller.
|
|
|
|
.TP
|
|
|
|
.BR tgkill (2)
|
|
|
|
Sends a signal to a specified thread within a specific process.
|
|
|
|
(This is the system call used to implement
|
|
|
|
.BR pthread_kill (3).)
|
|
|
|
.TP
|
getrlimit.2, kill.2, rt_sigqueueinfo.2, sigaction.2, signal.2, signalfd.2, sigprocmask.2, sigwaitinfo.2, psignal.3, pthread_sigqueue.3, credentials.7, signal.7: Change reference to "sigqueue(2)" to "sigqueue(3)"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-18 04:27:57 +00:00
|
|
|
.BR sigqueue (3)
|
2008-10-05 05:23:58 +00:00
|
|
|
Sends a real-time signal with accompanying data to a specified process.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS Waiting for a signal to be caught
|
2018-05-18 08:02:24 +00:00
|
|
|
The following system calls suspend execution of the calling
|
|
|
|
thread until a signal is caught
|
2008-10-05 05:30:24 +00:00
|
|
|
(or an unhandled signal terminates the process):
|
|
|
|
.TP 16
|
|
|
|
.BR pause (2)
|
|
|
|
Suspends execution until any signal is caught.
|
|
|
|
.TP
|
|
|
|
.BR sigsuspend (2)
|
|
|
|
Temporarily changes the signal mask (see below) and suspends
|
|
|
|
execution until one of the unmasked signals is caught.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS Synchronously accepting a signal
|
2008-10-05 05:41:29 +00:00
|
|
|
Rather than asynchronously catching a signal via a signal handler,
|
|
|
|
it is possible to synchronously accept the signal, that is,
|
|
|
|
to block execution until the signal is delivered,
|
|
|
|
at which point the kernel returns information about the
|
|
|
|
signal to the caller.
|
|
|
|
There are two general ways to do this:
|
2008-10-16 18:37:32 +00:00
|
|
|
.IP * 2
|
2008-10-05 05:41:29 +00:00
|
|
|
.BR sigwaitinfo (2),
|
|
|
|
.BR sigtimedwait (2),
|
|
|
|
and
|
|
|
|
.BR sigwait (3)
|
|
|
|
suspend execution until one of the signals in a specified
|
|
|
|
set is delivered.
|
|
|
|
Each of these calls returns information about the delivered signal.
|
|
|
|
.IP *
|
|
|
|
.BR signalfd (2)
|
|
|
|
returns a file descriptor that can be used to read information
|
|
|
|
about signals that are delivered to the caller.
|
|
|
|
Each
|
|
|
|
.BR read (2)
|
|
|
|
from this file descriptor blocks until one of the signals
|
|
|
|
in the set specified in the
|
|
|
|
.BR signalfd (2)
|
|
|
|
call is delivered to the caller.
|
|
|
|
The buffer returned by
|
|
|
|
.BR read (2)
|
|
|
|
contains a structure describing the signal.
|
intro.1, time.1, _syscall.2, accept.2, capget.2, clone.2, execve.2, fcntl.2, intro.2, ioctl_list.2, ioprio_set.2, kill.2, mlock.2, nanosleep.2, perf_event_open.2, select.2, stat.2, times.2, ustat.2, vfork.2, wait.2, cfree.3, dbopen.3, dlopen.3, fenv.3, fmtmsg.3, gamma.3, getaddrinfo.3, gethostbyname.3, getnameinfo.3, getspnam.3, login.3, printf.3, regex.3, stdio.3, sysconf.3, termios.3, ttyslot.3, undocumented.3, wordexp.3, console_codes.4, initrd.4, mouse.4, random.4, st.4, tty_ioctl.4, wavelan.4, charmap.5, dir_colors.5, hosts.5, termcap.5, armscii-8.7, boot.7, bootparam.7, capabilities.7, charsets.7, ddp.7, futex.7, glob.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man.7, numa.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, rtnetlink.7, signal.7, time.7, udp.7, udplite.7, unicode.7, uri.7, utf-8.7: G;lobal fix: remove unneeded double quotes in .SS headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:02:18 +00:00
|
|
|
.SS Signal mask and pending signals
|
2006-04-24 00:43:09 +00:00
|
|
|
A signal may be
|
|
|
|
.IR blocked ,
|
|
|
|
which means that it will not be delivered until it is later unblocked.
|
|
|
|
Between the time when it is generated and when it is delivered
|
2007-04-12 22:42:49 +00:00
|
|
|
a signal is said to be
|
2006-04-24 00:43:09 +00:00
|
|
|
.IR pending .
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2007-04-12 22:42:49 +00:00
|
|
|
Each thread in a process has an independent
|
|
|
|
.IR "signal mask" ,
|
2006-04-24 00:43:09 +00:00
|
|
|
which indicates the set of signals that the thread is currently blocking.
|
|
|
|
A thread can manipulate its signal mask using
|
|
|
|
.BR pthread_sigmask (3).
|
2007-04-12 22:42:49 +00:00
|
|
|
In a traditional single-threaded application,
|
2006-04-24 00:43:09 +00:00
|
|
|
.BR sigprocmask (2)
|
|
|
|
can be used to manipulate the signal mask.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2008-10-04 06:33:53 +00:00
|
|
|
A child created via
|
|
|
|
.BR fork (2)
|
|
|
|
inherits a copy of its parent's signal mask;
|
|
|
|
the signal mask is preserved across
|
|
|
|
.BR execve (2).
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2019-08-26 20:04:12 +00:00
|
|
|
A signal may be process-directed or thread-directed.
|
|
|
|
A process-directed signal is one that is targeted at (and thus pending for)
|
|
|
|
the process as a whole.
|
|
|
|
A signal may be process-directed
|
|
|
|
because it was generated by the kernel for reasons
|
|
|
|
other than a hardware exception, or because it was sent using
|
|
|
|
.BR kill (2)
|
|
|
|
or
|
|
|
|
.BR sigqueue (3).
|
2019-08-28 09:58:00 +00:00
|
|
|
A thread-directed signal is one that is targeted at a specific thread.
|
2019-08-26 20:04:12 +00:00
|
|
|
A signal may be thread-directed because it was generated as a consequence
|
|
|
|
of executing a specific machine-language instruction
|
|
|
|
that triggered a hardware exception (e.g.,
|
2007-06-25 09:24:48 +00:00
|
|
|
.B SIGSEGV
|
2019-08-26 20:04:12 +00:00
|
|
|
for an invalid memory access, or
|
|
|
|
.B SIGFPE
|
2020-03-29 07:22:38 +00:00
|
|
|
for a math error), or because it was
|
2019-08-26 20:04:12 +00:00
|
|
|
targeted at a specific thread using
|
|
|
|
interfaces such as
|
|
|
|
.BR tgkill (2)
|
|
|
|
or
|
|
|
|
.BR pthread_kill (3).
|
|
|
|
.PP
|
2006-04-24 00:43:09 +00:00
|
|
|
A process-directed signal may be delivered to any one of the
|
|
|
|
threads that does not currently have the signal blocked.
|
2020-04-13 09:28:10 +00:00
|
|
|
.\" Joseph C. Sible notes:
|
|
|
|
.\" On Linux, if the main thread has the signal unblocked, then the kernel
|
|
|
|
.\" will always deliver the signal there, citing this kernel code
|
|
|
|
.\"
|
|
|
|
.\" Per this comment in kernel/signal.c since time immemorial:
|
|
|
|
.\"
|
|
|
|
.\" /*
|
|
|
|
.\" * Now find a thread we can wake up to take the signal off the queue.
|
|
|
|
.\" *
|
|
|
|
.\" * If the main thread wants the signal, it gets first crack.
|
|
|
|
.\" * Probably the least surprising to the average bear.
|
|
|
|
.\" */
|
|
|
|
.\"
|
|
|
|
.\" But this does not mean the signal will be delivered only in the
|
|
|
|
.\" main thread, since if a handler is already executing in the main thread
|
|
|
|
.\" (and thus the signal is blocked in that thread), then a further
|
|
|
|
.\" might be delivered in a different thread.
|
|
|
|
.\"
|
2007-04-12 22:42:49 +00:00
|
|
|
If more than one of the threads has the signal unblocked, then the
|
2006-04-24 00:43:09 +00:00
|
|
|
kernel chooses an arbitrary thread to which to deliver the signal.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2006-04-24 00:43:09 +00:00
|
|
|
A thread can obtain the set of signals that it currently has pending
|
|
|
|
using
|
|
|
|
.BR sigpending (2).
|
2007-04-12 22:42:49 +00:00
|
|
|
This set will consist of the union of the set of pending
|
|
|
|
process-directed signals and the set of signals pending for
|
2006-04-24 00:43:09 +00:00
|
|
|
the calling thread.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2008-10-04 06:33:53 +00:00
|
|
|
A child created via
|
|
|
|
.BR fork (2)
|
|
|
|
initially has an empty pending signal set;
|
|
|
|
the pending signal set is preserved across an
|
|
|
|
.BR execve (2).
|
intro.1, time.1, _syscall.2, accept.2, capget.2, clone.2, execve.2, fcntl.2, intro.2, ioctl_list.2, ioprio_set.2, kill.2, mlock.2, nanosleep.2, perf_event_open.2, select.2, stat.2, times.2, ustat.2, vfork.2, wait.2, cfree.3, dbopen.3, dlopen.3, fenv.3, fmtmsg.3, gamma.3, getaddrinfo.3, gethostbyname.3, getnameinfo.3, getspnam.3, login.3, printf.3, regex.3, stdio.3, sysconf.3, termios.3, ttyslot.3, undocumented.3, wordexp.3, console_codes.4, initrd.4, mouse.4, random.4, st.4, tty_ioctl.4, wavelan.4, charmap.5, dir_colors.5, hosts.5, termcap.5, armscii-8.7, boot.7, bootparam.7, capabilities.7, charsets.7, ddp.7, futex.7, glob.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man.7, numa.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, rtnetlink.7, signal.7, time.7, udp.7, udplite.7, unicode.7, uri.7, utf-8.7: G;lobal fix: remove unneeded double quotes in .SS headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:02:18 +00:00
|
|
|
.SS Standard signals
|
2007-04-12 22:42:49 +00:00
|
|
|
Linux supports the standard signals listed below.
|
2018-11-17 09:10:30 +00:00
|
|
|
The second column of the table indicates which standard (if any)
|
|
|
|
specified the signal: "P1990" indicates that the signal is described
|
|
|
|
in the original POSIX.1-1990 standard;
|
|
|
|
"P2001" indicates that the signal was added in SUSv2 and POSIX.1-2001.
|
2004-11-03 13:51:07 +00:00
|
|
|
.TS
|
|
|
|
l c c l
|
|
|
|
____
|
|
|
|
lB c c l.
|
2018-11-17 08:58:37 +00:00
|
|
|
Signal Standard Action Comment
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGABRT P1990 Core Abort signal from \fBabort\fP(3)
|
|
|
|
SIGALRM P1990 Term Timer signal from \fBalarm\fP(2)
|
|
|
|
SIGBUS P2001 Core Bus error (bad memory access)
|
|
|
|
SIGCHLD P1990 Ign Child stopped or terminated
|
|
|
|
SIGCLD \- Ign A synonym for \fBSIGCHLD\fP
|
|
|
|
SIGCONT P1990 Cont Continue if stopped
|
|
|
|
SIGEMT \- Term Emulator trap
|
|
|
|
SIGFPE P1990 Core Floating-point exception
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGHUP P1990 Term Hangup detected on controlling terminal
|
2004-11-03 13:51:07 +00:00
|
|
|
or death of controlling process
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGILL P1990 Core Illegal Instruction
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGINFO \- A synonym for \fBSIGPWR\fP
|
|
|
|
SIGINT P1990 Term Interrupt from keyboard
|
|
|
|
SIGIO \- Term I/O now possible (4.2BSD)
|
|
|
|
SIGIOT \- Core IOT trap. A synonym for \fBSIGABRT\fP
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGKILL P1990 Term Kill signal
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGLOST \- Term File lock lost (unused)
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGPIPE P1990 Term Broken pipe: write to pipe with no
|
2017-01-02 18:58:41 +00:00
|
|
|
readers; see \fBpipe\fP(7)
|
2020-04-19 21:32:58 +00:00
|
|
|
SIGPOLL P2001 Term Pollable event (Sys V);
|
|
|
|
synonym for \fBSIGIO\fP
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGPROF P2001 Term Profiling timer expired
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGPWR \- Term Power failure (System V)
|
|
|
|
SIGQUIT P1990 Core Quit from keyboard
|
|
|
|
SIGSEGV P1990 Core Invalid memory reference
|
|
|
|
SIGSTKFLT \- Term Stack fault on coprocessor (unused)
|
|
|
|
SIGSTOP P1990 Stop Stop process
|
|
|
|
SIGTSTP P1990 Stop Stop typed at terminal
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGSYS P2001 Core Bad system call (SVr4);
|
2017-01-02 19:01:14 +00:00
|
|
|
see also \fBseccomp\fP(2)
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGTERM P1990 Term Termination signal
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGTRAP P2001 Core Trace/breakpoint trap
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGTTIN P1990 Stop Terminal input for background process
|
|
|
|
SIGTTOU P1990 Stop Terminal output for background process
|
|
|
|
SIGUNUSED \- Core Synonymous with \fBSIGSYS\fP
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGURG P2001 Ign Urgent condition on socket (4.2BSD)
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGUSR1 P1990 Term User-defined signal 1
|
|
|
|
SIGUSR2 P1990 Term User-defined signal 2
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGVTALRM P2001 Term Virtual alarm clock (4.2BSD)
|
|
|
|
SIGXCPU P2001 Core CPU time limit exceeded (4.2BSD);
|
2017-01-02 19:02:01 +00:00
|
|
|
see \fBsetrlimit\fP(2)
|
2018-11-17 08:58:37 +00:00
|
|
|
SIGXFSZ P2001 Core File size limit exceeded (4.2BSD);
|
2017-01-02 19:02:35 +00:00
|
|
|
see \fBsetrlimit\fP(2)
|
2018-11-17 09:10:30 +00:00
|
|
|
SIGWINCH \- Ign Window resize signal (4.3BSD, Sun)
|
2004-11-03 13:51:07 +00:00
|
|
|
.TE
|
2018-11-17 07:59:02 +00:00
|
|
|
.PP
|
2018-11-17 09:10:30 +00:00
|
|
|
The signals
|
|
|
|
.B SIGKILL
|
|
|
|
and
|
|
|
|
.B SIGSTOP
|
|
|
|
cannot be caught, blocked, or ignored.
|
|
|
|
.PP
|
2007-06-08 09:56:56 +00:00
|
|
|
Up to and including Linux 2.2, the default behavior for
|
2020-06-20 17:06:40 +00:00
|
|
|
.BR SIGSYS ", " SIGXCPU ", " SIGXFSZ ,
|
2004-11-03 13:51:07 +00:00
|
|
|
and (on architectures other than SPARC and MIPS)
|
|
|
|
.B SIGBUS
|
|
|
|
was to terminate the process (without a core dump).
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
(On some other UNIX systems the default action for
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR SIGXCPU " and " SIGXFSZ
|
|
|
|
is to terminate the process without a core dump.)
|
2006-08-03 13:58:08 +00:00
|
|
|
Linux 2.4 conforms to the POSIX.1-2001 requirements for these signals,
|
2004-11-03 13:51:07 +00:00
|
|
|
terminating the process with a core dump.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
.B SIGEMT
|
2006-08-03 13:58:08 +00:00
|
|
|
is not specified in POSIX.1-2001, but nevertheless appears
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
on most other UNIX systems,
|
2006-12-17 01:04:18 +00:00
|
|
|
where its default action is typically to terminate
|
2004-11-03 13:51:07 +00:00
|
|
|
the process with a core dump.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
.B SIGPWR
|
2006-08-03 13:58:08 +00:00
|
|
|
(which is not specified in POSIX.1-2001) is typically ignored
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
by default on those other UNIX systems where it appears.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2004-11-03 13:51:07 +00:00
|
|
|
.B SIGIO
|
2006-08-03 13:58:08 +00:00
|
|
|
(which is not specified in POSIX.1-2001) is ignored by default
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
on several other UNIX systems.
|
2018-11-17 09:10:30 +00:00
|
|
|
.\"
|
2019-07-13 17:42:09 +00:00
|
|
|
.SS Queueing and delivery semantics for standard signals
|
|
|
|
If multiple standard signals are pending for a process,
|
|
|
|
the order in which the signals are delivered is unspecified.
|
|
|
|
.PP
|
|
|
|
Standard signals do not queue.
|
|
|
|
If multiple instances of a standard signal are generated while
|
|
|
|
that signal is blocked,
|
|
|
|
then only one instance of the signal is marked as pending
|
|
|
|
(and the signal will be delivered just once when it is unblocked).
|
2019-07-13 18:15:32 +00:00
|
|
|
In the case where a standard signal is already pending, the
|
2019-07-13 17:49:04 +00:00
|
|
|
.I siginfo_t
|
2019-07-13 18:15:32 +00:00
|
|
|
structure (see
|
|
|
|
.BR sigaction (2))
|
|
|
|
associated with that signal is not overwritten
|
|
|
|
on arrival of subsequent instances of the same signal.
|
|
|
|
Thus, the process will receive the information
|
|
|
|
associated with the first instance of the signal.
|
2019-07-13 17:42:09 +00:00
|
|
|
.\"
|
2018-11-17 08:29:46 +00:00
|
|
|
.SS Signal numbering for standard signals
|
|
|
|
The numeric value for each signal is given in the table below.
|
|
|
|
As shown in the table, many signals have different numeric values
|
|
|
|
on different architectures.
|
|
|
|
The first numeric value in each table row shows the signal number
|
|
|
|
on x86, ARM, and most other architectures;
|
|
|
|
the second value is for Alpha and SPARC; the third is for MIPS;
|
|
|
|
and the last is for PARISC.
|
|
|
|
A dash (\-) denotes that a signal is absent on the corresponding architecture.
|
|
|
|
.TS
|
|
|
|
l c c c c l
|
|
|
|
l c c c c l
|
|
|
|
______
|
|
|
|
lB c c c c l.
|
|
|
|
Signal x86/ARM Alpha/ MIPS PARISC Notes
|
|
|
|
most others SPARC
|
|
|
|
SIGHUP \01 \01 \01 \01
|
|
|
|
SIGINT \02 \02 \02 \02
|
|
|
|
SIGQUIT \03 \03 \03 \03
|
|
|
|
SIGILL \04 \04 \04 \04
|
|
|
|
SIGTRAP \05 \05 \05 \05
|
|
|
|
SIGABRT \06 \06 \06 \06
|
|
|
|
SIGIOT \06 \06 \06 \06
|
|
|
|
SIGBUS \07 10 10 10
|
|
|
|
SIGEMT \- \07 \07 -
|
|
|
|
SIGFPE \08 \08 \08 \08
|
|
|
|
SIGKILL \09 \09 \09 \09
|
|
|
|
SIGUSR1 10 30 16 16
|
|
|
|
SIGSEGV 11 11 11 11
|
|
|
|
SIGUSR2 12 31 17 17
|
|
|
|
SIGPIPE 13 13 13 13
|
|
|
|
SIGALRM 14 14 14 14
|
|
|
|
SIGTERM 15 15 15 15
|
|
|
|
SIGSTKFLT 16 \- \- \07
|
|
|
|
SIGCHLD 17 20 18 18
|
|
|
|
SIGCLD \- \- 18 \-
|
|
|
|
SIGCONT 18 19 25 26
|
|
|
|
SIGSTOP 19 17 23 24
|
|
|
|
SIGTSTP 20 18 24 25
|
|
|
|
SIGTTIN 21 21 26 27
|
|
|
|
SIGTTOU 22 22 27 28
|
|
|
|
SIGURG 23 16 21 29
|
|
|
|
SIGXCPU 24 24 30 12
|
|
|
|
SIGXFSZ 25 25 31 30
|
|
|
|
SIGVTALRM 26 26 28 20
|
|
|
|
SIGPROF 27 27 29 21
|
|
|
|
SIGWINCH 28 28 20 23
|
|
|
|
SIGIO 29 23 22 22
|
|
|
|
SIGPOLL Same as SIGIO
|
|
|
|
SIGPWR 30 29/\- 19 19
|
|
|
|
SIGINFO \- 29/\- \- \-
|
|
|
|
SIGLOST \- \-/29 \- \-
|
|
|
|
SIGSYS 31 12 12 31
|
|
|
|
SIGUNUSED 31 \- \- 31
|
|
|
|
.TE
|
|
|
|
.PP
|
|
|
|
Note the following:
|
|
|
|
.IP * 3
|
|
|
|
Where defined,
|
|
|
|
.B SIGUNUSED
|
|
|
|
is synonymous with
|
|
|
|
.BR SIGSYS .
|
|
|
|
Since glibc 2.26,
|
|
|
|
.B SIGUNUSED
|
|
|
|
is no longer defined on any architecture.
|
|
|
|
.IP *
|
|
|
|
Signal 29 is
|
|
|
|
.BR SIGINFO / SIGPWR
|
|
|
|
(synonyms for the same value) on Alpha but
|
|
|
|
.B SIGLOST
|
|
|
|
on SPARC.
|
|
|
|
.\"
|
intro.1, time.1, _syscall.2, accept.2, capget.2, clone.2, execve.2, fcntl.2, intro.2, ioctl_list.2, ioprio_set.2, kill.2, mlock.2, nanosleep.2, perf_event_open.2, select.2, stat.2, times.2, ustat.2, vfork.2, wait.2, cfree.3, dbopen.3, dlopen.3, fenv.3, fmtmsg.3, gamma.3, getaddrinfo.3, gethostbyname.3, getnameinfo.3, getspnam.3, login.3, printf.3, regex.3, stdio.3, sysconf.3, termios.3, ttyslot.3, undocumented.3, wordexp.3, console_codes.4, initrd.4, mouse.4, random.4, st.4, tty_ioctl.4, wavelan.4, charmap.5, dir_colors.5, hosts.5, termcap.5, armscii-8.7, boot.7, bootparam.7, capabilities.7, charsets.7, ddp.7, futex.7, glob.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man.7, numa.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, rtnetlink.7, signal.7, time.7, udp.7, udplite.7, unicode.7, uri.7, utf-8.7: G;lobal fix: remove unneeded double quotes in .SS headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:02:18 +00:00
|
|
|
.SS Real-time signals
|
2015-02-18 19:48:44 +00:00
|
|
|
Starting with version 2.2,
|
2006-08-03 13:58:08 +00:00
|
|
|
Linux supports real-time signals as originally defined in the POSIX.1b
|
|
|
|
real-time extensions (and now included in POSIX.1-2001).
|
2007-06-25 09:24:48 +00:00
|
|
|
The range of supported real-time signals is defined by the macros
|
|
|
|
.B SIGRTMIN
|
|
|
|
and
|
|
|
|
.BR SIGRTMAX .
|
|
|
|
POSIX.1-2001 requires that an implementation support at least
|
|
|
|
.B _POSIX_RTSIG_MAX
|
|
|
|
(8) real-time signals.
|
|
|
|
.PP
|
2015-02-18 20:10:31 +00:00
|
|
|
The Linux kernel supports a range of 33 different real-time
|
|
|
|
signals, numbered 32 to 64.
|
2007-06-25 09:24:48 +00:00
|
|
|
However, the glibc POSIX threads implementation internally uses
|
2007-07-08 12:39:24 +00:00
|
|
|
two (for NPTL) or three (for LinuxThreads) real-time signals
|
2007-06-25 09:24:48 +00:00
|
|
|
(see
|
|
|
|
.BR pthreads (7)),
|
|
|
|
and adjusts the value of
|
|
|
|
.B SIGRTMIN
|
|
|
|
suitably (to 34 or 35).
|
|
|
|
Because the range of available real-time signals varies according
|
|
|
|
to the glibc threading implementation (and this variation can occur
|
2008-03-19 08:46:32 +00:00
|
|
|
at run time according to the available kernel and glibc),
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
and indeed the range of real-time signals varies across UNIX systems,
|
2007-06-25 09:24:48 +00:00
|
|
|
programs should
|
|
|
|
.IR "never refer to real-time signals using hard-coded numbers" ,
|
|
|
|
but instead should always refer to real-time signals using the notation
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR SIGRTMIN +n,
|
2007-07-08 12:39:24 +00:00
|
|
|
and include suitable (run-time) checks that
|
2007-06-25 09:24:48 +00:00
|
|
|
.BR SIGRTMIN +n
|
|
|
|
does not exceed
|
|
|
|
.BR SIGRTMAX .
|
2004-11-03 13:51:07 +00:00
|
|
|
.PP
|
|
|
|
Unlike standard signals, real-time signals have no predefined meanings:
|
|
|
|
the entire set of real-time signals can be used for application-defined
|
|
|
|
purposes.
|
|
|
|
.PP
|
|
|
|
The default action for an unhandled real-time signal is to terminate the
|
|
|
|
receiving process.
|
|
|
|
.PP
|
|
|
|
Real-time signals are distinguished by the following:
|
|
|
|
.IP 1. 4
|
|
|
|
Multiple instances of real-time signals can be queued.
|
|
|
|
By contrast, if multiple instances of a standard signal are delivered
|
|
|
|
while that signal is currently blocked, then only one instance is queued.
|
|
|
|
.IP 2. 4
|
|
|
|
If the signal is sent using
|
getrlimit.2, kill.2, rt_sigqueueinfo.2, sigaction.2, signal.2, signalfd.2, sigprocmask.2, sigwaitinfo.2, psignal.3, pthread_sigqueue.3, credentials.7, signal.7: Change reference to "sigqueue(2)" to "sigqueue(3)"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-18 04:27:57 +00:00
|
|
|
.BR sigqueue (3),
|
2004-11-03 13:51:07 +00:00
|
|
|
an accompanying value (either an integer or a pointer) can be sent
|
|
|
|
with the signal.
|
|
|
|
If the receiving process establishes a handler for this signal using the
|
2005-06-24 14:17:21 +00:00
|
|
|
.B SA_SIGINFO
|
2004-11-03 13:51:07 +00:00
|
|
|
flag to
|
2014-03-26 05:13:39 +00:00
|
|
|
.BR sigaction (2),
|
2004-11-03 13:51:07 +00:00
|
|
|
then it can obtain this data via the
|
|
|
|
.I si_value
|
|
|
|
field of the
|
|
|
|
.I siginfo_t
|
|
|
|
structure passed as the second argument to the handler.
|
|
|
|
Furthermore, the
|
|
|
|
.I si_pid
|
|
|
|
and
|
|
|
|
.I si_uid
|
|
|
|
fields of this structure can be used to obtain the PID
|
|
|
|
and real user ID of the process sending the signal.
|
|
|
|
.IP 3. 4
|
|
|
|
Real-time signals are delivered in a guaranteed order.
|
|
|
|
Multiple real-time signals of the same type are delivered in the order
|
|
|
|
they were sent.
|
|
|
|
If different real-time signals are sent to a process, they are delivered
|
|
|
|
starting with the lowest-numbered signal.
|
|
|
|
(I.e., low-numbered signals have highest priority.)
|
2008-07-02 12:54:59 +00:00
|
|
|
By contrast, if multiple standard signals are pending for a process,
|
|
|
|
the order in which they are delivered is unspecified.
|
2004-11-03 13:51:07 +00:00
|
|
|
.PP
|
|
|
|
If both standard and real-time signals are pending for a process,
|
|
|
|
POSIX leaves it unspecified which is delivered first.
|
|
|
|
Linux, like many other implementations, gives priority
|
|
|
|
to standard signals in this case.
|
|
|
|
.PP
|
|
|
|
According to POSIX, an implementation should permit at least
|
2007-06-25 09:24:48 +00:00
|
|
|
.B _POSIX_SIGQUEUE_MAX
|
|
|
|
(32) real-time signals to be queued to
|
2004-11-03 13:51:07 +00:00
|
|
|
a process.
|
2004-12-03 15:11:50 +00:00
|
|
|
However, Linux does things differently.
|
|
|
|
In kernels up to and including 2.6.7, Linux imposes
|
2004-11-03 13:51:07 +00:00
|
|
|
a system-wide limit on the number of queued real-time signals
|
|
|
|
for all processes.
|
|
|
|
This limit can be viewed and (with privilege) changed via the
|
|
|
|
.I /proc/sys/kernel/rtsig-max
|
|
|
|
file.
|
|
|
|
A related file,
|
|
|
|
.IR /proc/sys/kernel/rtsig-nr ,
|
|
|
|
can be used to find out how many real-time signals are currently queued.
|
2004-12-03 15:11:50 +00:00
|
|
|
In Linux 2.6.8, these
|
|
|
|
.I /proc
|
2005-06-29 08:13:08 +00:00
|
|
|
interfaces were replaced by the
|
2004-12-03 15:11:50 +00:00
|
|
|
.B RLIMIT_SIGPENDING
|
|
|
|
resource limit, which specifies a per-user limit for queued
|
2004-12-07 17:46:30 +00:00
|
|
|
signals; see
|
2004-12-03 15:11:50 +00:00
|
|
|
.BR setrlimit (2)
|
|
|
|
for further details.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2016-12-05 07:17:23 +00:00
|
|
|
The addition of real-time signals required the widening
|
2015-02-18 20:25:41 +00:00
|
|
|
of the signal set structure
|
|
|
|
.RI ( sigset_t )
|
|
|
|
from 32 to 64 bits.
|
|
|
|
Consequently, various system calls were superseded by new system calls
|
|
|
|
that supported the larger signal sets.
|
|
|
|
The old and new system calls are as follows:
|
|
|
|
.TS
|
|
|
|
lb lb
|
|
|
|
l l.
|
|
|
|
Linux 2.0 and earlier Linux 2.2 and later
|
|
|
|
\fBsigaction\fP(2) \fBrt_sigaction\fP(2)
|
|
|
|
\fBsigpending\fP(2) \fBrt_sigpending\fP(2)
|
|
|
|
\fBsigprocmask\fP(2) \fBrt_sigprocmask\fP(2)
|
|
|
|
\fBsigreturn\fP(2) \fBrt_sigreturn\fP(2)
|
|
|
|
\fBsigsuspend\fP(2) \fBrt_sigsuspend\fP(2)
|
|
|
|
\fBsigtimedwait\fP(2) \fBrt_sigtimedwait\fP(2)
|
|
|
|
.TE
|
|
|
|
.\"
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS Interruption of system calls and library functions by signal handlers
|
2008-07-07 04:16:16 +00:00
|
|
|
If a signal handler is invoked while a system call or library
|
|
|
|
function call is blocked, then either:
|
|
|
|
.IP * 2
|
|
|
|
the call is automatically restarted after the signal handler returns; or
|
|
|
|
.IP *
|
|
|
|
the call fails with the error
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR EINTR .
|
2008-07-07 04:16:16 +00:00
|
|
|
.PP
|
|
|
|
Which of these two behaviors occurs depends on the interface and
|
|
|
|
whether or not the signal handler was established using the
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR SA_RESTART
|
|
|
|
flag (see
|
|
|
|
.BR sigaction (2)).
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
The details vary across UNIX systems;
|
2008-07-10 09:38:08 +00:00
|
|
|
below, the details for Linux.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2008-07-07 04:16:16 +00:00
|
|
|
If a blocked call to one of the following interfaces is interrupted
|
capget.2, fanotify_init.2, fcntl.2, ioctl_tty.2, madvise.2, mbind.2, prctl.2, sched_setaffinity.2, hash.3, isgreater.3, posix_fallocate.3, sigvec.3, full.4, sd.4, wavelan.4, core.5, host.conf.5, epoll.7, signal.7, unix.7, user_namespaces.7: wfix (will fail --> fail/fails)
Reported-by: Pedro Alves <palves@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-10-20 10:36:42 +00:00
|
|
|
by a signal handler, then the call is automatically restarted
|
2008-07-07 04:16:16 +00:00
|
|
|
after the signal handler returns if the
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR SA_RESTART
|
capget.2, fanotify_init.2, fcntl.2, ioctl_tty.2, madvise.2, mbind.2, prctl.2, sched_setaffinity.2, hash.3, isgreater.3, posix_fallocate.3, sigvec.3, full.4, sd.4, wavelan.4, core.5, host.conf.5, epoll.7, signal.7, unix.7, user_namespaces.7: wfix (will fail --> fail/fails)
Reported-by: Pedro Alves <palves@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-10-20 10:36:42 +00:00
|
|
|
flag was used; otherwise the call fails with the error
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR EINTR :
|
|
|
|
.\" The following system calls use ERESTARTSYS,
|
|
|
|
.\" so that they are restartable
|
|
|
|
.IP * 2
|
|
|
|
.BR read (2),
|
|
|
|
.BR readv (2),
|
|
|
|
.BR write (2),
|
|
|
|
.BR writev (2),
|
|
|
|
and
|
|
|
|
.BR ioctl (2)
|
|
|
|
calls on "slow" devices.
|
2008-07-07 04:16:16 +00:00
|
|
|
A "slow" device is one where the I/O call may block for an
|
|
|
|
indefinite time, for example, a terminal, pipe, or socket.
|
|
|
|
If an I/O call on a slow device has already transferred some
|
|
|
|
data by the time it is interrupted by a signal handler,
|
2008-07-04 13:13:35 +00:00
|
|
|
then the call will return a success status
|
|
|
|
(normally, the number of bytes transferred).
|
2015-05-05 14:45:11 +00:00
|
|
|
Note that a (local) disk is not a slow device according to this definition;
|
|
|
|
I/O operations on disk devices are not interrupted by signals.
|
2008-07-04 13:13:35 +00:00
|
|
|
.IP *
|
|
|
|
.BR open (2),
|
2008-07-04 19:40:51 +00:00
|
|
|
if it can block (e.g., when opening a FIFO; see
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR fifo (7)).
|
|
|
|
.IP *
|
|
|
|
.BR wait (2),
|
|
|
|
.BR wait3 (2),
|
|
|
|
.BR wait4 (2),
|
|
|
|
.BR waitid (2),
|
|
|
|
and
|
|
|
|
.BR waitpid (2).
|
|
|
|
.IP *
|
|
|
|
Socket interfaces:
|
2008-07-07 04:16:16 +00:00
|
|
|
.\" If a timeout (setsockopt()) is in effect on the socket, then these
|
2008-07-04 13:13:35 +00:00
|
|
|
.\" system calls switch to using EINTR. Consequently, they and are not
|
|
|
|
.\" automatically restarted, and they show the stop/cont behavior
|
|
|
|
.\" described below. (Verified from 2.6.26 source, and by experiment; mtk)
|
|
|
|
.BR accept (2),
|
|
|
|
.BR connect (2),
|
|
|
|
.BR recv (2),
|
|
|
|
.BR recvfrom (2),
|
2014-05-27 16:20:32 +00:00
|
|
|
.BR recvmmsg (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR recvmsg (2),
|
|
|
|
.BR send (2),
|
|
|
|
.BR sendto (2),
|
|
|
|
and
|
2008-10-16 18:36:27 +00:00
|
|
|
.BR sendmsg (2),
|
2016-10-29 10:48:36 +00:00
|
|
|
.\" FIXME What about sendmmsg()?
|
2008-10-16 18:36:27 +00:00
|
|
|
unless a timeout has been set on the socket (see below).
|
2008-07-04 13:13:35 +00:00
|
|
|
.IP *
|
|
|
|
File locking interfaces:
|
|
|
|
.BR flock (2)
|
|
|
|
and
|
2015-01-29 07:51:21 +00:00
|
|
|
the
|
|
|
|
.BR F_SETLKW
|
|
|
|
and
|
|
|
|
.BR F_OFD_SETLKW
|
|
|
|
operations of
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR fcntl (2)
|
|
|
|
.IP *
|
|
|
|
POSIX message queue interfaces:
|
2008-07-04 15:16:26 +00:00
|
|
|
.BR mq_receive (3),
|
|
|
|
.BR mq_timedreceive (3),
|
|
|
|
.BR mq_send (3),
|
2008-07-04 13:13:35 +00:00
|
|
|
and
|
2008-07-04 15:16:26 +00:00
|
|
|
.BR mq_timedsend (3).
|
2008-07-04 13:13:35 +00:00
|
|
|
.IP *
|
|
|
|
.BR futex (2)
|
|
|
|
.B FUTEX_WAIT
|
2015-01-27 06:12:03 +00:00
|
|
|
(since Linux 2.6.22;
|
|
|
|
.\" commit 72c1bbf308c75a136803d2d76d0e18258be14c7a
|
|
|
|
beforehand, always failed with
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR EINTR ).
|
|
|
|
.IP *
|
2015-01-29 07:37:44 +00:00
|
|
|
.BR getrandom (2).
|
|
|
|
.IP *
|
2014-10-08 09:52:45 +00:00
|
|
|
.BR pthread_mutex_lock (3),
|
|
|
|
.BR pthread_cond_wait (3),
|
|
|
|
and related APIs.
|
|
|
|
.IP *
|
2015-01-27 06:12:03 +00:00
|
|
|
.BR futex (2)
|
|
|
|
.BR FUTEX_WAIT_BITSET .
|
|
|
|
.IP *
|
2008-07-04 13:13:35 +00:00
|
|
|
POSIX semaphore interfaces:
|
|
|
|
.BR sem_wait (3)
|
|
|
|
and
|
|
|
|
.BR sem_timedwait (3)
|
2015-01-27 06:12:03 +00:00
|
|
|
(since Linux 2.6.22;
|
|
|
|
.\" as a consequence of the 2.6.22 changes in the futex() implementation
|
|
|
|
beforehand, always failed with
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR EINTR ).
|
2017-05-30 03:43:58 +00:00
|
|
|
.IP *
|
|
|
|
.BR read (2)
|
|
|
|
from an
|
|
|
|
.BR inotify (7)
|
|
|
|
file descriptor
|
|
|
|
(since Linux 3.8;
|
|
|
|
.\" commit 1ca39ab9d21ac93f94b9e3eb364ea9a5cf2aba06
|
|
|
|
beforehand, always failed with
|
|
|
|
.BR EINTR ).
|
2008-07-04 13:13:35 +00:00
|
|
|
.PP
|
|
|
|
The following interfaces are never restarted after
|
|
|
|
being interrupted by a signal handler,
|
|
|
|
regardless of the use of
|
2008-07-04 20:07:45 +00:00
|
|
|
.BR SA_RESTART ;
|
|
|
|
they always fail with the error
|
|
|
|
.B EINTR
|
|
|
|
when interrupted by a signal handler:
|
2008-07-04 13:13:35 +00:00
|
|
|
.\" These are the system calls that give EINTR or ERESTARTNOHAND
|
|
|
|
.\" on interruption by a signal handler.
|
|
|
|
.IP * 2
|
2014-05-27 16:32:16 +00:00
|
|
|
"Input" socket interfaces, when a timeout
|
|
|
|
.RB ( SO_RCVTIMEO )
|
|
|
|
has been set on the socket using
|
2008-10-16 18:36:27 +00:00
|
|
|
.BR setsockopt (2):
|
|
|
|
.BR accept (2),
|
|
|
|
.BR recv (2),
|
|
|
|
.BR recvfrom (2),
|
2014-05-27 16:20:32 +00:00
|
|
|
.BR recvmmsg (2)
|
2014-05-27 16:32:16 +00:00
|
|
|
(also with a non-NULL
|
2014-05-27 16:20:32 +00:00
|
|
|
.IR timeout
|
|
|
|
argument),
|
2008-10-16 18:36:27 +00:00
|
|
|
and
|
2014-05-27 16:32:16 +00:00
|
|
|
.BR recvmsg (2).
|
|
|
|
.IP *
|
|
|
|
"Output" socket interfaces, when a timeout
|
2015-01-27 06:12:03 +00:00
|
|
|
.RB ( SO_RCVTIMEO )
|
2014-05-27 16:32:16 +00:00
|
|
|
has been set on the socket using
|
|
|
|
.BR setsockopt (2):
|
2008-10-16 18:36:27 +00:00
|
|
|
.BR connect (2),
|
|
|
|
.BR send (2),
|
|
|
|
.BR sendto (2),
|
|
|
|
and
|
2014-05-27 16:32:16 +00:00
|
|
|
.BR sendmsg (2).
|
2016-10-29 10:48:36 +00:00
|
|
|
.\" FIXME What about sendmmsg()?
|
2008-10-16 18:36:27 +00:00
|
|
|
.IP *
|
2008-07-04 13:13:35 +00:00
|
|
|
Interfaces used to wait for signals:
|
|
|
|
.BR pause (2),
|
|
|
|
.BR sigsuspend (2),
|
2008-07-04 14:36:28 +00:00
|
|
|
.BR sigtimedwait (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
and
|
|
|
|
.BR sigwaitinfo (2).
|
|
|
|
.IP *
|
|
|
|
File descriptor multiplexing interfaces:
|
|
|
|
.BR epoll_wait (2),
|
|
|
|
.BR epoll_pwait (2),
|
|
|
|
.BR poll (2),
|
|
|
|
.BR ppoll (2),
|
|
|
|
.BR select (2),
|
|
|
|
and
|
|
|
|
.BR pselect (2).
|
|
|
|
.IP *
|
2008-07-04 16:24:13 +00:00
|
|
|
System V IPC interfaces:
|
2008-07-04 13:13:35 +00:00
|
|
|
.\" On some other systems, SA_RESTART does restart these system calls
|
|
|
|
.BR msgrcv (2),
|
|
|
|
.BR msgsnd (2),
|
|
|
|
.BR semop (2),
|
|
|
|
and
|
|
|
|
.BR semtimedop (2).
|
|
|
|
.IP *
|
|
|
|
Sleep interfaces:
|
|
|
|
.BR clock_nanosleep (2),
|
|
|
|
.BR nanosleep (2),
|
|
|
|
and
|
|
|
|
.BR usleep (3).
|
|
|
|
.IP *
|
|
|
|
.BR io_getevents (2).
|
2008-07-04 20:07:45 +00:00
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.BR sleep (3)
|
|
|
|
function is also never restarted if interrupted by a handler,
|
|
|
|
but gives a success return: the number of seconds remaining to sleep.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS Interruption of system calls and library functions by stop signals
|
2008-07-04 13:15:12 +00:00
|
|
|
On Linux, even in the absence of signal handlers,
|
|
|
|
certain blocking interfaces can fail with the error
|
|
|
|
.BR EINTR
|
|
|
|
after the process is stopped by one of the stop signals
|
|
|
|
and then resumed via
|
|
|
|
.BR SIGCONT .
|
|
|
|
This behavior is not sanctioned by POSIX.1, and doesn't occur
|
|
|
|
on other systems.
|
aio.7, arp.7, attributes.7, boot.7, cgroups.7, cpuset.7, credentials.7, fanotify.7, fifo.7, glob.7, hier.7, hostname.7, icmp.7, inode.7, inotify.7, keyrings.7, libc.7, mailaddr.7, mount_namespaces.7, mq_overview.7, nptl.7, numa.7, path_resolution.7, persistent-keyring.7, pid_namespaces.7, pipe.7, pkeys.7, process-keyring.7, pthreads.7, pty.7, random.7, sched.7, sem_overview.7, session-keyring.7, shm_overview.7, signal-safety.7, signal.7, spufs.7, standards.7, symlink.7, termio.7, thread-keyring.7, time.7, unicode.7, user-keyring.7, user-session-keyring.7, user_namespaces.7, utf-8.7, xattr.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2017-08-17 22:59:04 +00:00
|
|
|
.PP
|
2008-07-04 13:15:12 +00:00
|
|
|
The Linux interfaces that display this behavior are:
|
|
|
|
.IP * 2
|
2014-05-27 16:32:16 +00:00
|
|
|
"Input" socket interfaces, when a timeout
|
|
|
|
.RB ( SO_RCVTIMEO )
|
|
|
|
has been set on the socket using
|
2008-10-16 18:36:27 +00:00
|
|
|
.BR setsockopt (2):
|
|
|
|
.BR accept (2),
|
|
|
|
.BR recv (2),
|
|
|
|
.BR recvfrom (2),
|
2014-05-27 16:20:32 +00:00
|
|
|
.BR recvmmsg (2)
|
2014-05-27 16:32:16 +00:00
|
|
|
(also with a non-NULL
|
2014-05-27 16:20:32 +00:00
|
|
|
.IR timeout
|
|
|
|
argument),
|
2008-10-16 18:36:27 +00:00
|
|
|
and
|
2014-05-27 16:32:16 +00:00
|
|
|
.BR recvmsg (2).
|
|
|
|
.IP *
|
|
|
|
"Output" socket interfaces, when a timeout
|
2015-01-27 06:12:03 +00:00
|
|
|
.RB ( SO_RCVTIMEO )
|
2014-05-27 16:32:16 +00:00
|
|
|
has been set on the socket using
|
|
|
|
.BR setsockopt (2):
|
2008-10-16 18:36:27 +00:00
|
|
|
.BR connect (2),
|
|
|
|
.BR send (2),
|
|
|
|
.BR sendto (2),
|
|
|
|
and
|
2015-01-27 06:12:03 +00:00
|
|
|
.\" FIXME What about sendmmsg()?
|
|
|
|
.BR sendmsg (2),
|
|
|
|
if a send timeout
|
|
|
|
.RB ( SO_SNDTIMEO )
|
|
|
|
has been set.
|
2008-10-16 18:36:27 +00:00
|
|
|
.IP * 2
|
2008-07-04 13:15:12 +00:00
|
|
|
.BR epoll_wait (2),
|
|
|
|
.BR epoll_pwait (2).
|
|
|
|
.IP *
|
|
|
|
.BR semop (2),
|
|
|
|
.BR semtimedop (2).
|
|
|
|
.IP *
|
|
|
|
.BR sigtimedwait (2),
|
|
|
|
.BR sigwaitinfo (2).
|
|
|
|
.IP *
|
2017-05-30 04:06:07 +00:00
|
|
|
Linux 3.7 and earlier:
|
2008-07-04 13:15:12 +00:00
|
|
|
.BR read (2)
|
|
|
|
from an
|
|
|
|
.BR inotify (7)
|
2017-05-30 04:06:07 +00:00
|
|
|
file descriptor
|
|
|
|
.\" commit 1ca39ab9d21ac93f94b9e3eb364ea9a5cf2aba06
|
2008-07-04 13:15:12 +00:00
|
|
|
.IP *
|
|
|
|
Linux 2.6.21 and earlier:
|
|
|
|
.BR futex (2)
|
|
|
|
.BR FUTEX_WAIT ,
|
|
|
|
.BR sem_timedwait (3),
|
|
|
|
.BR sem_wait (3).
|
|
|
|
.IP *
|
|
|
|
Linux 2.6.8 and earlier:
|
|
|
|
.BR msgrcv (2),
|
|
|
|
.BR msgsnd (2).
|
|
|
|
.IP *
|
|
|
|
Linux 2.4 and earlier:
|
|
|
|
.BR nanosleep (2).
|
getent.1, intro.1, time.1, _exit.2, _syscall.2, accept.2, access.2, acct.2, adjtimex.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bdflush.2, bind.2, brk.2, cacheflush.2, capget.2, chdir.2, chmod.2, chown.2, chroot.2, clock_getres.2, clock_nanosleep.2, clone.2, close.2, connect.2, create_module.2, delete_module.2, dup.2, epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, execve.2, exit_group.2, faccessat.2, fchmodat.2, fchownat.2, fcntl.2, flock.2, fork.2, fstatat.2, fsync.2, futex.2, futimesat.2, get_kernel_syms.2, get_robust_list.2, get_thread_area.2, getcpu.2, getdents.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getitimer.2, getpagesize.2, getpeername.2, getpid.2, getpriority.2, getresuid.2, getrlimit.2, getrusage.2, getsid.2, getsockname.2, getsockopt.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, getxattr.2, idle.2, init_module.2, inotify_add_watch.2, inotify_init.2, inotify_rm_watch.2, intro.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, ioctl.2, ioctl_list.2, ioperm.2, iopl.2, ioprio_set.2, ipc.2, kcmp.2, kill.2, killpg.2, link.2, linkat.2, listen.2, listxattr.2, llseek.2, lookup_dcookie.2, lseek.2, madvise.2, migrate_pages.2, mincore.2, mkdir.2, mkdirat.2, mknod.2, mknodat.2, mlock.2, mmap.2, mmap2.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, mq_getsetattr.2, mremap.2, msgctl.2, msgget.2, msgop.2, msync.2, nanosleep.2, nfsservctl.2, nice.2, open.2, openat.2, outb.2, pause.2, pciconfig_read.2, perf_event_open.2, perfmonctl.2, personality.2, pipe.2, pivot_root.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, read.2, readahead.2, readdir.2, readlink.2, readlinkat.2, readv.2, reboot.2, recv.2, remap_file_pages.2, removexattr.2, rename.2, renameat.2, rmdir.2, rt_sigqueueinfo.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, select.2, semctl.2, semget.2, semop.2, send.2, sendfile.2, set_thread_area.2, set_tid_address.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, setup.2, setxattr.2, shmctl.2, shmget.2, shmop.2, shutdown.2, sigaction.2, sigaltstack.2, signal.2, signalfd.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, socketcall.2, socketpair.2, splice.2, stat.2, statfs.2, stime.2, swapon.2, symlink.2, symlinkat.2, sync.2, sync_file_range.2, sysctl.2, sysfs.2, sysinfo.2, syslog.2, tee.2, time.2, timerfd_create.2, times.2, tkill.2, truncate.2, umask.2, umount.2, uname.2, unimplemented.2, unlink.2, unlinkat.2, uselib.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, vmsplice.2, wait.2, wait4.2, write.2, CPU_SET.3, INFINITY.3, MB_CUR_MAX.3, MB_LEN_MAX.3, __setfpucw.3, a64l.3, abort.3, abs.3, acos.3, acosh.3, addseverity.3, adjtime.3, aio_cancel.3, aio_error.3, aio_fsync.3, aio_read.3, aio_return.3, aio_suspend.3, aio_write.3, alloca.3, argz_add.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, backtrace.3, basename.3, bcmp.3, bcopy.3, bindresvport.3, bsd_signal.3, bsearch.3, bstring.3, btowc.3, btree.3, byteorder.3, bzero.3, cabs.3, cacos.3, cacosh.3, canonicalize_file_name.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, catgets.3, catopen.3, cbrt.3, ccos.3, ccosh.3, ceil.3, cerf.3, cexp.3, cexp2.3, cfree.3, cimag.3, clearenv.3, clock.3, clock_getcpuclockid.3, clog.3, clog10.3, clog2.3, closedir.3, cmsg.3, confstr.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, cproj.3, creal.3, crypt.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, ctermid.3, ctime.3, daemon.3, dbopen.3, des_crypt.3, difftime.3, dirfd.3, div.3, dl_iterate_phdr.3, dlopen.3, dprintf.3, drand48.3, drand48_r.3, dysize.3, ecvt.3, ecvt_r.3, encrypt.3, end.3, endian.3, envz_add.3, erf.3, erfc.3, err.3, errno.3, error.3, ether_aton.3, euidaccess.3, exec.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fclose.3, fcloseall.3, fdim.3, fenv.3, ferror.3, fexecve.3, fflush.3, ffs.3, fgetgrent.3, fgetpwent.3, fgetwc.3, fgetws.3, finite.3, flockfile.3, floor.3, fma.3, fmax.3, fmemopen.3, fmin.3, fmod.3, fmtmsg.3, fnmatch.3, fopen.3, fpathconf.3, fpclassify.3, fpurge.3, fputwc.3, fputws.3, fread.3, frexp.3, fseek.3, fseeko.3, ftime.3, ftok.3, fts.3, ftw.3, futimes.3, fwide.3, gamma.3, gcvt.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getenv.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getipnodebyname.3, getline.3, getloadavg.3, getlogin.3, getmntent.3, getnameinfo.3, getnetent.3, getnetent_r.3, getopt.3, getpass.3, getprotoent.3, getprotoent_r.3, getpt.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getrpcent_r.3, getrpcport.3, gets.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, getumask.3, getusershell.3, getutent.3, getw.3, getwchar.3, glob.3, grantpt.3, gsignal.3, hash.3, hsearch.3, hypot.3, iconv.3, iconv_close.3, iconv_open.3, ilogb.3, index.3, inet.3, inet_ntop.3, inet_pton.3, infnan.3, initgroups.3, insque.3, intro.3, isalpha.3, isatty.3, isgreater.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, j0.3, key_setsecret.3, ldexp.3, lgamma.3, lio_listio.3, localeconv.3, lockf.3, log.3, log10.3, log1p.3, log2.3, logb.3, login.3, longjmp.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, makedev.3, malloc.3, malloc_hook.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, mempcpy.3, memset.3, mkdtemp.3, mkfifo.3, mkfifoat.3, mkstemp.3, mktemp.3, modf.3, mpool.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, nan.3, netlink.3, nextafter.3, nl_langinfo.3, offsetof.3, on_exit.3, opendir.3, openpty.3, perror.3, popen.3, posix_fallocate.3, posix_memalign.3, posix_openpt.3, pow.3, pow10.3, printf.3, profil.3, program_invocation_name.3, psignal.3, pthread_kill_other_threads_np.3, ptsname.3, putenv.3, putgrent.3, putpwent.3, puts.3, putwchar.3, qecvt.3, qsort.3, queue.3, raise.3, rand.3, random.3, random_r.3, rcmd.3, re_comp.3, readdir.3, realpath.3, recno.3, regex.3, remainder.3, remove.3, remquo.3, resolver.3, rewinddir.3, rexec.3, rint.3, round.3, rpc.3, rpmatch.3, rtime.3, rtnetlink.3, scalb.3, scalbln.3, scandir.3, scandirat.3, scanf.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, setlocale.3, setlogmask.3, setnetgrent.3, shm_open.3, siginterrupt.3, signbit.3, significand.3, sigpause.3, sigqueue.3, sigset.3, sigsetops.3, sigvec.3, sin.3, sincos.3, sinh.3, sleep.3, sockatmark.3, sqrt.3, statvfs.3, stdarg.3, stdin.3, stdio.3, stdio_ext.3, stpcpy.3, stpncpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfmon.3, strfry.3, strftime.3, string.3, strlen.3, strnlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtod.3, strtoimax.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, termios.3, tgamma.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, towctrans.3, towlower.3, towupper.3, trunc.3, tsearch.3, ttyname.3, ttyslot.3, tzset.3, ualarm.3, ulimit.3, ungetwc.3, unlocked_stdio.3, unlockpt.3, updwtmp.3, usleep.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstoimax.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wordexp.3, wprintf.3, xcrypt.3, xdr.3, y0.3, cciss.4, console.4, console_codes.4, console_ioctl.4, dsp56k.4, fd.4, full.4, hd.4, hpsa.4, initrd.4, intro.4, lp.4, mem.4, mouse.4, null.4, pts.4, ram.4, random.4, rtc.4, sk98lin.4, st.4, tty.4, ttyS.4, tty_ioctl.4, vcs.4, wavelan.4, acct.5, charmap.5, dir_colors.5, filesystems.5, ftpusers.5, group.5, host.conf.5, hosts.5, hosts.equiv.5, intro.5, issue.5, locale.5, motd.5, networks.5, nologin.5, nscd.conf.5, passwd.5, proc.5, protocols.5, resolv.conf.5, rpc.5, securetty.5, services.5, shells.5, termcap.5, ttytype.5, utmp.5, armscii-8.7, arp.7, ascii.7, bootparam.7, capabilities.7, charsets.7, complex.7, cp1251.7, credentials.7, ddp.7, environ.7, epoll.7, fifo.7, futex.7, glob.7, hier.7, icmp.7, inotify.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, locale.7, mailaddr.7, man.7, mq_overview.7, netdevice.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, raw.7, regex.7, rtld-audit.7, rtnetlink.7, sem_overview.7, shm_overview.7, sigevent.7, signal.7, socket.7, standards.7, suffixes.7, svipc.7, tcp.7, termio.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, nscd.8, sync.8, tzselect.8, zdump.8, zic.8: Global fix: remove unneeded double quotes in .SH headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:01:36 +00:00
|
|
|
.SH CONFORMING TO
|
2008-07-04 20:07:45 +00:00
|
|
|
POSIX.1, except as noted.
|
2020-05-19 07:59:28 +00:00
|
|
|
.SH NOTES
|
|
|
|
For a discussion of async-signal-safe functions, see
|
intro.1, localedef.1, memusage.1, memusagestat.1, bpf.2, execve.2, fork.2, keyctl.2, request_key.2, sigaction.2, signal.2, socket.2, dlopen.3, getauxval.3, gnu_get_libc_version.3, pthread_atfork.3, sem_post.3, setjmp.3, strftime.3, veth.4, locale.5, nscd.conf.5, resolv.conf.5, address_families.7, armscii-8.7, ascii.7, capabilities.7, cgroups.7, charsets.7, cp1251.7, cp1252.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, keyrings.7, koi8-r.7, koi8-u.7, libc.7, locale.7, man.7, network_namespaces.7, persistent-keyring.7, session-keyring.7, signal.7, unicode.7, uri.7, user-keyring.7, user-session-keyring.7: ffix: replace - with real\-
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-07-06 12:28:51 +00:00
|
|
|
.BR signal\-safety (7).
|
2020-05-19 07:59:28 +00:00
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.I /proc/[pid]/task/[tid]/status
|
|
|
|
file contains various fields that show the signals
|
|
|
|
that a thread is blocking
|
|
|
|
.RI ( SigBlk ),
|
|
|
|
catching
|
|
|
|
.RI ( SigCgt ),
|
|
|
|
or ignoring
|
|
|
|
.RI ( SigIgn ).
|
|
|
|
(The set of signals that are caught or ignored will be the same
|
|
|
|
across all threads in a process.)
|
|
|
|
Other fields show the set of pending signals that are directed to the thread
|
|
|
|
.RI ( SigPnd )
|
|
|
|
as well as the set of pending signals that are directed
|
|
|
|
to the process as a whole
|
|
|
|
.RI ( ShdPnd ).
|
|
|
|
The corresponding fields in
|
|
|
|
.I /proc/[pid]/status
|
|
|
|
show the information for the main thread.
|
|
|
|
See
|
|
|
|
.BR proc (5)
|
|
|
|
for further details.
|
2019-12-23 17:31:46 +00:00
|
|
|
.SH BUGS
|
|
|
|
There are six signals that can be delivered
|
|
|
|
as a consequence of a hardware exception:
|
|
|
|
.BR SIGBUS ,
|
|
|
|
.BR SIGEMT ,
|
|
|
|
.BR SIGFPE ,
|
|
|
|
.BR SIGILL ,
|
|
|
|
.BR SIGSEGV ,
|
|
|
|
and
|
|
|
|
.BR SIGTRAP .
|
|
|
|
Which of these signals is delivered,
|
|
|
|
for any given hardware exception,
|
|
|
|
is not documented and does not always make sense.
|
|
|
|
.PP
|
|
|
|
For example, an invalid memory access that causes delivery of
|
|
|
|
.B SIGSEGV
|
|
|
|
on one CPU architecture may cause delivery of
|
|
|
|
.B SIGBUS
|
|
|
|
on another architecture, or vice versa.
|
|
|
|
.PP
|
|
|
|
For another example, using the x86
|
|
|
|
.I int
|
|
|
|
instruction with a forbidden argument
|
|
|
|
(any number other than 3 or 128)
|
|
|
|
causes delivery of
|
|
|
|
.BR SIGSEGV ,
|
|
|
|
even though
|
|
|
|
.B SIGILL
|
|
|
|
would make more sense,
|
|
|
|
because of how the CPU reports the forbidden operation to the kernel.
|
getent.1, intro.1, time.1, _exit.2, _syscall.2, accept.2, access.2, acct.2, adjtimex.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bdflush.2, bind.2, brk.2, cacheflush.2, capget.2, chdir.2, chmod.2, chown.2, chroot.2, clock_getres.2, clock_nanosleep.2, clone.2, close.2, connect.2, create_module.2, delete_module.2, dup.2, epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, execve.2, exit_group.2, faccessat.2, fchmodat.2, fchownat.2, fcntl.2, flock.2, fork.2, fstatat.2, fsync.2, futex.2, futimesat.2, get_kernel_syms.2, get_robust_list.2, get_thread_area.2, getcpu.2, getdents.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getitimer.2, getpagesize.2, getpeername.2, getpid.2, getpriority.2, getresuid.2, getrlimit.2, getrusage.2, getsid.2, getsockname.2, getsockopt.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, getxattr.2, idle.2, init_module.2, inotify_add_watch.2, inotify_init.2, inotify_rm_watch.2, intro.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, ioctl.2, ioctl_list.2, ioperm.2, iopl.2, ioprio_set.2, ipc.2, kcmp.2, kill.2, killpg.2, link.2, linkat.2, listen.2, listxattr.2, llseek.2, lookup_dcookie.2, lseek.2, madvise.2, migrate_pages.2, mincore.2, mkdir.2, mkdirat.2, mknod.2, mknodat.2, mlock.2, mmap.2, mmap2.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, mq_getsetattr.2, mremap.2, msgctl.2, msgget.2, msgop.2, msync.2, nanosleep.2, nfsservctl.2, nice.2, open.2, openat.2, outb.2, pause.2, pciconfig_read.2, perf_event_open.2, perfmonctl.2, personality.2, pipe.2, pivot_root.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, ptrace.2, query_module.2, quotactl.2, read.2, readahead.2, readdir.2, readlink.2, readlinkat.2, readv.2, reboot.2, recv.2, remap_file_pages.2, removexattr.2, rename.2, renameat.2, rmdir.2, rt_sigqueueinfo.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, select.2, semctl.2, semget.2, semop.2, send.2, sendfile.2, set_thread_area.2, set_tid_address.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, setup.2, setxattr.2, shmctl.2, shmget.2, shmop.2, shutdown.2, sigaction.2, sigaltstack.2, signal.2, signalfd.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, socketcall.2, socketpair.2, splice.2, stat.2, statfs.2, stime.2, swapon.2, symlink.2, symlinkat.2, sync.2, sync_file_range.2, sysctl.2, sysfs.2, sysinfo.2, syslog.2, tee.2, time.2, timerfd_create.2, times.2, tkill.2, truncate.2, umask.2, umount.2, uname.2, unimplemented.2, unlink.2, unlinkat.2, uselib.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, vmsplice.2, wait.2, wait4.2, write.2, CPU_SET.3, INFINITY.3, MB_CUR_MAX.3, MB_LEN_MAX.3, __setfpucw.3, a64l.3, abort.3, abs.3, acos.3, acosh.3, addseverity.3, adjtime.3, aio_cancel.3, aio_error.3, aio_fsync.3, aio_read.3, aio_return.3, aio_suspend.3, aio_write.3, alloca.3, argz_add.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, backtrace.3, basename.3, bcmp.3, bcopy.3, bindresvport.3, bsd_signal.3, bsearch.3, bstring.3, btowc.3, btree.3, byteorder.3, bzero.3, cabs.3, cacos.3, cacosh.3, canonicalize_file_name.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, catgets.3, catopen.3, cbrt.3, ccos.3, ccosh.3, ceil.3, cerf.3, cexp.3, cexp2.3, cfree.3, cimag.3, clearenv.3, clock.3, clock_getcpuclockid.3, clog.3, clog10.3, clog2.3, closedir.3, cmsg.3, confstr.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, cproj.3, creal.3, crypt.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, ctermid.3, ctime.3, daemon.3, dbopen.3, des_crypt.3, difftime.3, dirfd.3, div.3, dl_iterate_phdr.3, dlopen.3, dprintf.3, drand48.3, drand48_r.3, dysize.3, ecvt.3, ecvt_r.3, encrypt.3, end.3, endian.3, envz_add.3, erf.3, erfc.3, err.3, errno.3, error.3, ether_aton.3, euidaccess.3, exec.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fclose.3, fcloseall.3, fdim.3, fenv.3, ferror.3, fexecve.3, fflush.3, ffs.3, fgetgrent.3, fgetpwent.3, fgetwc.3, fgetws.3, finite.3, flockfile.3, floor.3, fma.3, fmax.3, fmemopen.3, fmin.3, fmod.3, fmtmsg.3, fnmatch.3, fopen.3, fpathconf.3, fpclassify.3, fpurge.3, fputwc.3, fputws.3, fread.3, frexp.3, fseek.3, fseeko.3, ftime.3, ftok.3, fts.3, ftw.3, futimes.3, fwide.3, gamma.3, gcvt.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getenv.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getipnodebyname.3, getline.3, getloadavg.3, getlogin.3, getmntent.3, getnameinfo.3, getnetent.3, getnetent_r.3, getopt.3, getpass.3, getprotoent.3, getprotoent_r.3, getpt.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent.3, getrpcent_r.3, getrpcport.3, gets.3, getservent.3, getservent_r.3, getspnam.3, getttyent.3, getumask.3, getusershell.3, getutent.3, getw.3, getwchar.3, glob.3, grantpt.3, gsignal.3, hash.3, hsearch.3, hypot.3, iconv.3, iconv_close.3, iconv_open.3, ilogb.3, index.3, inet.3, inet_ntop.3, inet_pton.3, infnan.3, initgroups.3, insque.3, intro.3, isalpha.3, isatty.3, isgreater.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, j0.3, key_setsecret.3, ldexp.3, lgamma.3, lio_listio.3, localeconv.3, lockf.3, log.3, log10.3, log1p.3, log2.3, logb.3, login.3, longjmp.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, makedev.3, malloc.3, malloc_hook.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, mempcpy.3, memset.3, mkdtemp.3, mkfifo.3, mkfifoat.3, mkstemp.3, mktemp.3, modf.3, mpool.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, nan.3, netlink.3, nextafter.3, nl_langinfo.3, offsetof.3, on_exit.3, opendir.3, openpty.3, perror.3, popen.3, posix_fallocate.3, posix_memalign.3, posix_openpt.3, pow.3, pow10.3, printf.3, profil.3, program_invocation_name.3, psignal.3, pthread_kill_other_threads_np.3, ptsname.3, putenv.3, putgrent.3, putpwent.3, puts.3, putwchar.3, qecvt.3, qsort.3, queue.3, raise.3, rand.3, random.3, random_r.3, rcmd.3, re_comp.3, readdir.3, realpath.3, recno.3, regex.3, remainder.3, remove.3, remquo.3, resolver.3, rewinddir.3, rexec.3, rint.3, round.3, rpc.3, rpmatch.3, rtime.3, rtnetlink.3, scalb.3, scalbln.3, scandir.3, scandirat.3, scanf.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, setlocale.3, setlogmask.3, setnetgrent.3, shm_open.3, siginterrupt.3, signbit.3, significand.3, sigpause.3, sigqueue.3, sigset.3, sigsetops.3, sigvec.3, sin.3, sincos.3, sinh.3, sleep.3, sockatmark.3, sqrt.3, statvfs.3, stdarg.3, stdin.3, stdio.3, stdio_ext.3, stpcpy.3, stpncpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfmon.3, strfry.3, strftime.3, string.3, strlen.3, strnlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtod.3, strtoimax.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, termios.3, tgamma.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, towctrans.3, towlower.3, towupper.3, trunc.3, tsearch.3, ttyname.3, ttyslot.3, tzset.3, ualarm.3, ulimit.3, ungetwc.3, unlocked_stdio.3, unlockpt.3, updwtmp.3, usleep.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstoimax.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wordexp.3, wprintf.3, xcrypt.3, xdr.3, y0.3, cciss.4, console.4, console_codes.4, console_ioctl.4, dsp56k.4, fd.4, full.4, hd.4, hpsa.4, initrd.4, intro.4, lp.4, mem.4, mouse.4, null.4, pts.4, ram.4, random.4, rtc.4, sk98lin.4, st.4, tty.4, ttyS.4, tty_ioctl.4, vcs.4, wavelan.4, acct.5, charmap.5, dir_colors.5, filesystems.5, ftpusers.5, group.5, host.conf.5, hosts.5, hosts.equiv.5, intro.5, issue.5, locale.5, motd.5, networks.5, nologin.5, nscd.conf.5, passwd.5, proc.5, protocols.5, resolv.conf.5, rpc.5, securetty.5, services.5, shells.5, termcap.5, ttytype.5, utmp.5, armscii-8.7, arp.7, ascii.7, bootparam.7, capabilities.7, charsets.7, complex.7, cp1251.7, credentials.7, ddp.7, environ.7, epoll.7, fifo.7, futex.7, glob.7, hier.7, icmp.7, inotify.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, locale.7, mailaddr.7, man.7, mq_overview.7, netdevice.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, posixoptions.7, pthreads.7, pty.7, raw.7, regex.7, rtld-audit.7, rtnetlink.7, sem_overview.7, shm_overview.7, sigevent.7, signal.7, socket.7, standards.7, suffixes.7, svipc.7, tcp.7, termio.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, nscd.8, sync.8, tzselect.8, zdump.8, zic.8: Global fix: remove unneeded double quotes in .SH headings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 18:01:36 +00:00
|
|
|
.SH SEE ALSO
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR kill (1),
|
2018-09-10 09:18:06 +00:00
|
|
|
.BR clone (2),
|
2008-07-04 15:09:27 +00:00
|
|
|
.BR getrlimit (2),
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR kill (2),
|
2020-05-19 05:23:34 +00:00
|
|
|
.BR pidfd_send_signal (2),
|
2013-07-30 03:09:22 +00:00
|
|
|
.BR restart_syscall (2),
|
2011-09-18 04:29:31 +00:00
|
|
|
.BR rt_sigqueueinfo (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR setitimer (2),
|
|
|
|
.BR setrlimit (2),
|
|
|
|
.BR sgetmask (2),
|
|
|
|
.BR sigaction (2),
|
2008-07-04 15:09:27 +00:00
|
|
|
.BR sigaltstack (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR signal (2),
|
2008-02-11 11:41:18 +00:00
|
|
|
.BR signalfd (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR sigpending (2),
|
|
|
|
.BR sigprocmask (2),
|
2017-04-28 09:00:32 +00:00
|
|
|
.BR sigreturn (2),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR sigsuspend (2),
|
|
|
|
.BR sigwaitinfo (2),
|
2008-07-04 15:09:27 +00:00
|
|
|
.BR abort (3),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR bsd_signal (3),
|
2016-11-04 17:00:02 +00:00
|
|
|
.BR killpg (3),
|
2008-07-04 15:09:27 +00:00
|
|
|
.BR longjmp (3),
|
2010-11-17 05:56:44 +00:00
|
|
|
.BR pthread_sigqueue (3),
|
2016-08-07 18:46:15 +00:00
|
|
|
.BR raise (3),
|
getrlimit.2, kill.2, rt_sigqueueinfo.2, sigaction.2, signal.2, signalfd.2, sigprocmask.2, sigwaitinfo.2, psignal.3, pthread_sigqueue.3, credentials.7, signal.7: Change reference to "sigqueue(2)" to "sigqueue(3)"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-18 04:27:57 +00:00
|
|
|
.BR sigqueue (3),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR sigset (3),
|
2008-07-04 15:09:27 +00:00
|
|
|
.BR sigsetops (3),
|
|
|
|
.BR sigvec (3),
|
2008-07-02 13:30:54 +00:00
|
|
|
.BR sigwait (3),
|
2008-07-04 13:13:35 +00:00
|
|
|
.BR strsignal (3),
|
|
|
|
.BR sysv_signal (3),
|
2006-03-31 07:10:17 +00:00
|
|
|
.BR core (5),
|
2005-11-17 13:38:34 +00:00
|
|
|
.BR proc (5),
|
2015-03-21 21:31:58 +00:00
|
|
|
.BR nptl (7),
|
2010-09-21 04:43:53 +00:00
|
|
|
.BR pthreads (7),
|
|
|
|
.BR sigevent (7)
|