wrap fork so we can drop priority in child processes

This commit is contained in:
Anthony Minessale
2012-10-01 12:14:30 -05:00
parent 0995d133a6
commit 52eff9451c
8 changed files with 31 additions and 11 deletions
@@ -3101,7 +3101,7 @@ int gsmopen_serial_getstatus_AT(private_t *tech_pvt)
DEBUGA_AT("incoming SMS message:---%s---\n", GSMOPEN_P_LOG, p->sms_message);
pipe(fd1);
pid1 = fork();
pid1 = switch_fork();
if (pid1 == 0) { //child
int err;