From 8bbcaf9343f7ddf835357acfa97fa9c5a13ba9ad Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Thu, 22 Oct 2020 06:47:00 -0700 Subject: postMessage back from browser. Kill other instances of fs. Currently stuck not getting response to a getattr... --- fs/tabfs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fs') diff --git a/fs/tabfs.c b/fs/tabfs.c index 424b330..dcd55a8 100644 --- a/fs/tabfs.c +++ b/fs/tabfs.c @@ -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); -- cgit v1.2.3