system() returns -1, errno=10 when logged into Oracle

前端 未结 1 1561
时光说笑
时光说笑 2021-01-21 19:30

After an EXEC SQL CONNECT user/pass; command, system(\"\") returns a -1 with errno=10.

We\'ve migrated this program from Oracle 10g on HP-UX to

1条回答
  •  余生分开走
    2021-01-21 20:09

    This is Oracle being awful. They've installed a SIGCHLD handler that reaps any child process that exits, breaking any use of child processes in the application. You can probably fix it by calling signal(SIGCHLD,SIG_DFL) after connecting to uninstall their nonsense.

    0 讨论(0)
提交回复
热议问题