Skip to content

fork() does not work properly... #252

Open
@JustinCappos

Description

@JustinCappos

When I compile this simple program in lind following the basic directions, it does not work properly:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int main(void) {
  printf("Start!\n");
  const pid_t other = fork();
  printf("2!\n");
  return 0;
}

The output from running this code in lind is:

@[/home/lind/lind_project] lind> run /simple.nexe

executing: [sel_ldr -a -- "runnable-ld.so" --library-path "/lib/glibc" /simple.nexe]
[2261,4232416384:15:19:44.122287] BYPASSING ALL ACL CHECKS
Start!
2!
Start!
2!

It should instead produce output like:

@[/home/lind/lind_project] lind> run /simple.nexe
Start!
2!
2!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions