C program:
pid = fork();
if (pid == 0) {
execv("Golang Process");
} else (pid > 0) {
wait(&status);
printf("process %d status: %d
", pid);
}
Golang Program:
func main() {
......
os.Exit(1)
}
But, output is: process XXX status: 256
if set os.Exit(2), output is: process XXX status: 512
if set os.Exit(3), output is: process XXX status: 768
Why?