Is it acceptable to make copycheck part of the copyinout api? In waitpid it seems appropriate to check if the status userptr is valid before using a synchronization variable to sleep while waiting for the child proc to terminate.

1 Like

Interesting. You could try that. Or you could just copy out a dummy value to test it.