Page MenuHomeFreeBSD

Remove redundant pipe from pdeathsig.c test.
ClosedPublic

Authored by munro_ip9.org on Apr 27 2018, 11:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 3:28 PM
Unknown Object (File)
Dec 22 2023, 10:36 PM
Unknown Object (File)
Oct 28 2023, 12:07 PM
Unknown Object (File)
Apr 11 2023, 3:36 AM
Unknown Object (File)
Jan 10 2023, 5:15 PM
Unknown Object (File)
Jan 1 2023, 6:43 AM
Subscribers

Details

Summary

A pipe was was left over from a development version of pdeathsig.c and is not needed.

Process C waits for a signal that'll be generated when process B exists. Process B waits for process D to send it a byte via pipe_db before it exits. Process D sends the byte after it has started ptrace()ing process C. The point of the test is to show that process C receives the signal because process B exited, even though C has been reparented to process D. The pipe pipe_cd isn't doing anything useful (though in an earlier version of the patch it did). Clean that up by removing the useless pipe.

Test Plan

Run the test.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 27 2018, 3:57 PM
This revision was automatically updated to reflect the committed changes.