mirror of
https://github.com/osnr/TabFS.git
synced 2024-06-08 17:02:36 +02:00
postMessage back from browser. Kill other instances of fs.
Currently stuck not getting response to a getattr...
This commit is contained in:
parent
64bd1f3948
commit
8bbcaf9343
|
@ -371,7 +371,7 @@ async function onMessage(req) {
|
||||||
/* console.timeEnd(req.op + ':' + req.path);*/
|
/* console.timeEnd(req.op + ':' + req.path);*/
|
||||||
|
|
||||||
log('resp', response);
|
log('resp', response);
|
||||||
/* ws.send(JSON.stringify(response));*/
|
port.postMessage(response);
|
||||||
};
|
};
|
||||||
|
|
||||||
function tryConnect() {
|
function tryConnect() {
|
||||||
|
|
|
@ -230,6 +230,12 @@ static struct fuse_operations tabfs_filesystem_operations = {
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
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");
|
FILE* log = fopen("log.txt", "w");
|
||||||
for (int i = 0; i < argc; i++) {
|
for (int i = 0; i < argc; i++) {
|
||||||
fprintf(log, "arg%d: [%s]\n", i, argv[i]); fflush(log);
|
fprintf(log, "arg%d: [%s]\n", i, argv[i]); fflush(log);
|
||||||
|
|
Loading…
Reference in a new issue