Fix #51#52
Conversation
azubieta
left a comment
There was a problem hiding this comment.
I totally forgot about library constructors. I guess that apprun_restore_workdir_if_needed would be better in the libapprun_hooks constructor as it will be the first thing executed in the target applications.
|
My reasoning for making it a global variable was that if something else modifies |
|
If LD_PRELOAD is changed they can hook things before ours and change the working directory by the must restore it otherwise the app may fail. I guess that it's they responsibility to fix things. Let's divide this PR in two:
|
The only other things done in the |
|
Seems good! Thanks ! |
No description provided.