[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Vileserv on macOS issue
From: |
Robert Sturrock |
Subject: |
Vileserv on macOS issue |
Date: |
Wed, 21 Dec 2022 09:28:34 +1100 |
Hi All.
(Long time vile user here - many thanks to all those involved in the
development).
I’m running vile-9.8w on macOS Big Sur (11.7.1), built from source with perl
support. I’m able to use many of the perl extras fine, but for some reason
Vileserv does not seem to work, even though everything appears to be in place.
I run a ’startserv’ to start it up, at which point I can see the socket and the
server itself running as expected:
$ lsof ~/.vilesock
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
perl 3245 rns 3u unix 0x9f24ff916129b7b7 0t0
/Users/rns/.vilesock
$ ps -p 3245
PID TTY TIME CMD
3245 ttys005 0:00.03 vileserv
But when I try to edit a file, ‘vileget’ just exists (with success) but no new
buffer is opened in the running vile instance:
$ vileget fortune-cookie.txt
$ echo $?
0
But a ‘dtruss’ on the vileserv process does indicate it’s opening the file:
$ sudo dtruss -p 3245
[…]
SYSCALL(args) = return
fcntl(0x4, 0x2, 0x1) = 0 0
fcntl(0x4, 0x2, 0x1) = 0 0
ioctl(0x4, 0x4004667A, 0x7FFEE87EC804) = -1 Err#102
ioctl(0x4, 0x40487413, 0x7FFEE87EC808) = -1 Err#102
lseek(0x4, 0x0, 0x1) = -1 Err#29
fcntl(0x4, 0x2, 0x1) = 0 0
ioctl(0x4, 0x4004667A, 0x7FFEE87EC804) = -1 Err#102
ioctl(0x4, 0x40487413, 0x7FFEE87EC808) = -1 Err#102
lseek(0x4, 0x0, 0x1) = -1 Err#29
read(0x4, "/Users/rns/tmp/fortune-cookie.txt\n\n\0", 0x2000) = 35 0
write(0x1, "/Users/rns/tmp/fortune-cookie.txt\n\n\n\0", 0x24) = 36 0
close(0x4) = 0 0
Any clues as to where the issue might be or how I might be better debug this?
I suspect I’m missing some obvious here!
Regards,
Robert.
- Vileserv on macOS issue,
Robert Sturrock <=