dj(1) segfault fix #134
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
joke
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bonsai/harakit#134
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dj"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@emma could you verify #112 is fixed on this branch?
WIP: dj(1) segfault fixto dj(1) segfault fix@ -36,3 +36,3 @@
When seeking or skipping to a byte, writing or reading starts at the byte
immediately subsequent to the specified byte.
immediately subsequent to the specified byte. Seeks and skips aren\(cqt counted
Isn’t this not the case anymore? I thought we write at the byte specified, now.
I think this is the best dj(1) can be, at least until we spot another bug. #94 will let us move out that parse() routine which will be nice.
I'm happy with the code size, especially relative to functionality which is much improved. Many of the little nits have been picked.
No error message to alert the user that the device has no storage left. Please handle the error in writing to an output.
Please comment with the output with -H.
On OpenBSD, write(2) doesn't error (by returning -1) on /dev/full - writing "meow\n" to /dev/full apparently succeeds, returning 5 (the expected number of bytes written).
dd(1) on OpenBSD exhibits the same behavior:
I had to
$ cat </dev/full
to realize the pseudodevice doesn't exist on OpenBSD. It looks like the write succeeded on your system, too? What's your$ uname -a
?Along these lines I did notice a bug in the write functionality that is now fixed. Judging from your dj(1) statistics it wasn't, but you may want to try again anyway.
Give it another whirl.
Merged.
Pull request closed