commit - ea080950069d12713bf146472e18750210c4a24f
commit + b61717947970737f301781bb51a6bd06346a5e7b
blob - c49aada1867eade200f189c326cbc652fdde5370
blob + cdcdc01428ba60e2d4de1aa1fe3bb5cad5692585
--- fs.c
+++ fs.c
int
+last_time_crashed(void)
+{
+ int fd;
+
+ if ((fd = open(crashed_file, O_RDONLY)) == -1)
+ return 0;
+
+ close(fd);
+ unlink(crashed_file);
+ return 1;
+}
+
+int
lock_session(void)
{
struct flock lock;
blob - e01b03d74d63d9fee1f99ba2c2cfec45d0ec49fc
blob + 1f54d49fcb3d5345c2e0fc8fdfbaf94aea14deb7
--- telescope.c
+++ telescope.c
if (curr != NULL)
switch_to_tab(curr);
+ if (last_time_crashed())
+ switch_to_tab(new_tab("about:crash"));
+
return;
}
blob - 3824cee6e40bdc431ec84e473727dc570b4738bb
blob + de756be73c9d06373360b1b6f4614f46046196bd
--- telescope.h
+++ telescope.h
int fs_init(void);
int fs_main(void);
+int last_time_crashed(void);
int lock_session(void);
int load_certs(struct ohash*);