• Home
  • Raw
  • Download

Lines Matching full:parent

30  *	Case 1: Parent opens a file and duplicates it, places locks using
71 static int parent, child1, child2, status; variable
85 if ((syscall(__NR_gettid)) == parent) { in alarm_sig()
86 tst_resm(TINFO, "Alarm caught by parent"); in alarm_sig()
136 * send signal to parent here to tell parent we have locked the in dochild1()
137 * file, thus allowing parent to proceed in dochild1()
139 if ((kill(parent, SIGUSR1)) < 0) { in dochild1()
140 perror("child1 signal to parent failed"); in dochild1()
145 * set alarm to break pause if parent fails to signal then spin till in dochild1()
146 * parent ready in dochild1()
154 "SIGUSR2 signal from parent"); in dochild1()
196 parent, tmpname) < 0) { in dofork()
215 perror("parent sigprocmask SIG_BLOCK fail"); in dofork()
220 * set alarm to break pause if parent fails to signal then spin till in dofork()
221 * parent ready in dofork()
228 perror("parent paused without SIGUSR1 " "from child"); in dofork()
234 perror("parent sigprocmask SIG_SETMASK fail"); in dofork()
287 * send signal to parent here to tell parent we have locked the in dochild2()
288 * file, thus allowing parent to proceed in dochild2()
290 if ((kill(parent, SIGUSR1)) < 0) { in dochild2()
291 perror("child2 signal to parent failed"); in dochild2()
296 * set alarm to break pause if parent fails to signal then spin till in dochild2()
297 * parent ready in dochild2()
305 "SIGUSR2 signal from parent"); in dochild2()
370 /* setup to catch SIGUSR2 signal from parent */ in run_test()
375 parent = syscall(__NR_gettid); in run_test()
379 sprintf(tmpname, "fcntl15.%d", parent); in run_test()
385 perror("open first parent file failed"); in run_test()
398 perror("open second parent file failed"); in run_test()
406 perror("dup of second parent file failed"); in run_test()
423 perror("Attempt to set first parent lock failed"); in run_test()
437 perror("Attempt to set second parent lock failed"); in run_test()
451 dup_flag, parent, tmpname) < 0) in run_test()
458 /* parent */ in run_test()
471 perror("parent sigprocmask SIG_BLOCK fail"); in run_test()
476 * set alarm to break pause if parent fails to signal then spin till in run_test()
477 * parent ready in run_test()
484 perror("parent paused without SIGUSR1 " "from child"); in run_test()
490 perror("parent sigprocmask SIG_SETMASK fail"); in run_test()
532 &uc_file_mode, &parent, tmpname); in main()
534 &uc_file_mode, &uc_dup_flag, &parent, tmpname); in main()