napperley
06/12/2022, 12:44 AM@Suppress("UNUSED_PARAMETER")
private fun runContainer(args: COpaquePointer?): Int {
// Seg fault occurs on the line below.
println("Hello from Child! (PID: ${getpid()})")
// Remove all environment variables for this process.
clearenv()
// Load the shell process.
val rc = runProgram("/bin/sh")
return if (rc == -1) EXIT_FAILURE else EXIT_SUCCESS
}
napperley
06/12/2022, 10:30 PMPavel Kunyavskiy [JB]
06/13/2022, 5:40 AMPavel Kunyavskiy [JB]
06/13/2022, 6:59 AMnapperley
06/13/2022, 10:23 PMnapperley
06/13/2022, 11:32 PM