Changeset 2282 for trunk/src/kash/shinstance.c
- Timestamp:
- Feb 24, 2009, 5:08:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r2243 r2282 347 347 static void sh_sig_common_handler(int signo) 348 348 { 349 shmtxtmp tmp; 350 shinstance *psh; 351 349 352 fprintf(stderr, "sh_sig_common_handler: signo=%d:%s\n", signo, sys_signame[signo]); 353 shmtx_enter(&g_sh_mtx, &tmp); 354 355 /** @todo signal focus chain or something? Atm there will only be one shell, 356 * so it's not really important until we go threaded for real... */ 357 psh = g_sh_tail; 358 while (psh != NULL) 359 { 360 if (psh->sigactions[signo].sh_handler == SH_SIG_DFL) 361 /* implement... */; 362 else if (psh->sigactions[signo].sh_handler != SIG_IGN) 363 psh->sigactions[signo].sh_handler(psh, signo); 364 365 psh = psh->prev; 366 } 367 368 shmtx_leave(&g_sh_mtx, &tmp); 350 369 } 351 370 … … 578 597 rc = -1; 579 598 # else 580 //fprintf(stderr, "kill(%d, %d)\n", pid, signo);599 fprintf(stderr, "kill(%d, %d)\n", pid, signo); 581 600 rc = kill(pid, signo); 582 601 # endif
Note:
See TracChangeset
for help on using the changeset viewer.