Skip to content

Commit

Permalink
Removing currentPid
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Holzschuch committed Jun 23, 2019
1 parent 45a49c9 commit ed1c5df
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion ios_system.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ static void cleanup_function(void* parameters) {
p->argv_ref = (char **)malloc(sizeof(char*) * (p->argc + 1));
for (int i = 0; i < p->argc; i++) p->argv_ref[i] = p->argv[i];
pthread_cleanup_push(cleanup_function, parameters);
if (currentSession != nil) currentSession.pid = ios_currentPid();
int retval = p->function(p->argc, p->argv);
if (currentSession != nil) currentSession.global_errno = retval;
pthread_cleanup_pop(1);
Expand Down
1 change: 0 additions & 1 deletion ios_system/sessionParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
@property void* context;
@property int global_errno;
@property NSString* commandName;
@property pid_t pid;


- (instancetype)init;
Expand Down
1 change: 0 additions & 1 deletion ios_system/sessionParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ - (instancetype)init
self.stderr = stderr;
self.context = nil;
self.commandName = nil;
self.pid = -1;

return self;
}
Expand Down

0 comments on commit ed1c5df

Please sign in to comment.