diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-22 06:47:00 -0700 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-22 06:47:00 -0700 |
commit | 8bbcaf9343f7ddf835357acfa97fa9c5a13ba9ad (patch) | |
tree | 801bc9a0cde8600cf348d1e259dc0163c95eee2e /fs | |
parent | 64bd1f3948e2ce57a1fb26196019855727290465 (diff) |
postMessage back from browser. Kill other instances of fs.
Currently stuck not getting response to a getattr...
Diffstat (limited to 'fs')
-rw-r--r-- | fs/tabfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -230,6 +230,12 @@ static struct fuse_operations tabfs_filesystem_operations = { int main(int argc, char **argv) { + /* system("killall -9 tabfs"); */ + char killcmd[1000]; + sprintf(killcmd, "pgrep tabfs | grep -v %d | xargs kill -9", getpid()); + system(killcmd); + system("diskutil umount force mnt > /dev/null"); + FILE* log = fopen("log.txt", "w"); for (int i = 0; i < argc; i++) { fprintf(log, "arg%d: [%s]\n", i, argv[i]); fflush(log); |