diff options
author | Hans Nilsson <[email protected]> | 2017-02-03 11:38:02 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-02-03 11:38:02 +0100 |
commit | 4208945259f1a32f4261fc603b2f2be9057c5d50 (patch) | |
tree | 0dcb00848ee6af8364546b4bf9ab23ede97c862e /erts/emulator/sys/unix | |
parent | 24dc54fdb810fa29c13b7bd4d38c8d940b939cdc (diff) | |
parent | b2f2d1059fda823d3f71086a77adeb99d5475b94 (diff) | |
download | otp-4208945259f1a32f4261fc603b2f2be9057c5d50.tar.gz otp-4208945259f1a32f4261fc603b2f2be9057c5d50.tar.bz2 otp-4208945259f1a32f4261fc603b2f2be9057c5d50.zip |
erge branch 'maint'
Conflicts:
OTP_VERSION
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r-- | erts/emulator/sys/unix/sys.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c index e135dbff99..fa95473db8 100644 --- a/erts/emulator/sys/unix/sys.c +++ b/erts/emulator/sys/unix/sys.c @@ -819,15 +819,61 @@ void init_break_handler(void) } void sys_init_suspend_handler(void) +<<<<<<< HEAD { #ifdef ERTS_SYS_SUSPEND_SIGNAL sys_signal(ERTS_SYS_SUSPEND_SIGNAL, suspend_signal); +======= +{ +#ifdef ERTS_SYS_SUSPEND_SIGNAL + sys_signal(ERTS_SYS_SUSPEND_SIGNAL, suspend_signal); +#endif +} + +int sys_max_files(void) +{ + return(max_files); +} + +static void block_signals(void) +{ +#if !CHLDWTHR + sys_sigblock(SIGCHLD); +#endif +#ifndef ERTS_SMP + sys_sigblock(SIGINT); +#ifndef ETHR_UNUSABLE_SIGUSRX + sys_sigblock(SIGUSR1); +#endif /* #ifndef ETHR_UNUSABLE_SIGUSRX */ +#endif /* #ifndef ERTS_SMP */ + +#ifdef ERTS_SYS_SUSPEND_SIGNAL + sys_sigblock(ERTS_SYS_SUSPEND_SIGNAL); +>>>>>>> maint-18 #endif } int sys_max_files(void) { +<<<<<<< HEAD return(max_files); +======= + /* Update erl_child_setup.c if changed */ +#if !CHLDWTHR + sys_sigrelease(SIGCHLD); +#endif +#ifndef ERTS_SMP + sys_sigrelease(SIGINT); +#ifndef ETHR_UNUSABLE_SIGUSRX + sys_sigrelease(SIGUSR1); +#endif /* #ifndef ETHR_UNUSABLE_SIGUSRX */ +#endif /* #ifndef ERTS_SMP */ + +#ifdef ERTS_SYS_SUSPEND_SIGNAL + sys_sigrelease(ERTS_SYS_SUSPEND_SIGNAL); +#endif + +>>>>>>> maint-18 } /************************** OS info *******************************/ |