- 论坛徽章:
- 0
|
我的程序中原来用的是ESQL的数据库访问,但后来该成ODBC方式后,程序中的信号变发生了变化:父进程收到子进程状态变化信号(子进程退出),但是无法取得子进程状态,于是我在信号处理函数中调用abort()以产生core文件,并用dbx调试发现,在父进程取子进程状态之前,系统调用了两个函数:_ODBCSaveClientSIGCHLD,_ODBCSetASFSIGCHLDChain,具体信息如下:
(dbx) 0x3ffbfbe7af4 / 20 i
[(unknown), 0x3ffbfbe7af4] jsr r26, (r27), (unknown)+0x88
[(unknown), 0x3ffbfbe7af8] ldah gp, 16449(r26)
[(unknown), 0x3ffbfbe7afc] lda gp, 24248(gp)
[(unknown), 0x3ffbfbe7b00] ldq r27, -29592(gp)
[(unknown), 0x3ffbfbe7b04] jsr r26, (r27), _ODBCSaveClientSIGCHLD
[(unknown), 0x3ffbfbe7b08] ldah gp, 16449(r26)
[(unknown), 0x3ffbfbe7b0c] ldq r0, 0(r9)
[(unknown), 0x3ffbfbe7b10] lda gp, 24232(gp)
[(unknown), 0x3ffbfbe7b14] ldq r27, -29584(gp)
[(unknown), 0x3ffbfbe7b18] stq r0, 16(sp)
[(unknown), 0x3ffbfbe7b1c] jsr r26, (r27), _ODBCSetASFSIGCHLDChain
[(unknown), 0x3ffbfbe7b20] ldq r0, 16(sp)
[(unknown), 0x3ffbfbe7b24] ldah gp, 16449(r26)
[(unknown), 0x3ffbfbe7b28] ldq r26, 0(sp)
[(unknown), 0x3ffbfbe7b2c] lda gp, 24208(gp)
[(unknown), 0x3ffbfbe7b30] stq r0, 0(r9)
[(unknown), 0x3ffbfbe7b34] ldq r9, 8(sp)
[(unknown), 0x3ffbfbe7b38] lda sp, 32(sp)
[(unknown), 0x3ffbfbe7b3c] ret r31, (r26), 1
[_OdbcSaveDescPtrs, 0x3ffbfbe7b40] blt r18, 0x3ffbfbe7b90
请各位大侠指点,如何能让系统不调用ODBC的信号处理函数而让其父进程获取子进程的状态呢?
注:父进程中初始化并调用了ODBC的函数 |
|